• Good day!

    I’m happily using your plugin to send email notifications to users when a button is pressed, that automatically generates comments with @username in them.

    When the buttons generate a comment with @username in it this error message is shown for a short time (before the page is automatically refreshed):

    Warning: foreach() argument must be of type array|object, bool given in mysite.com/wp-content/plugins/comment-mention/app/main/class-comment-mention.php on line 284

    That line is:

        // Iterate the username loop.
        foreach ( $usernames as $username ) {

    Can you understand why that happens? I guess it could be my special implementation making it show… but maybe it’s something that should be fixed?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Warning: foreach() argument…’ is closed to new replies.