Closed
Description
Description
I upgraded an old 2.1 RC2/3 (somewhere in git) forum. I am getting a PHP error from the Q/A anti-spam logic.
foreach() argument must be of type array|object, bool given
Sources/Subs-Editor.php
Steps to reproduce
- The "answers" column in the database should be "false"
- View anything that triggers the Q/A anti-spam logic.
Environment (complete as necessary)
- Version/Git revision: latest
- Database Type: N/A
- Database Version: N/A
- PHP Version: N/a
Additional information/references
Seems simple enough to add a is_array logic before we do the foreach. I think this will only happen for some situations from upgrades.