Skip to content

Q/A PHP error #7304

Closed
Closed
@jdarwood007

Description

@jdarwood007

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

  1. The "answers" column in the database should be "false"
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions