Support » Plugin: Email Before Download » PHP Warning: count(): Parameter must be an array or an object that implements..

  • Hi,

    I noticed this warning on line 56 of class-email-before-download-db.php when using PHP 7.2.X:
    PHP Warning: count(): Parameter must be an array or an object that implements Countable

    To fix it you may need to modify the line 56 of class-email-before-download-db.php as follow:
    if ($query && count($query) > 0) {

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Warning: count(): Parameter must be an array or an object that implements..’ is closed to new replies.