Support » Plugin: WP Download Codes » Bug: PHP Error on Code generation

  • goeko

    (@goeko)


    Error on Code generation.

    In file “wp-content/plugins/wp-download-codes/includes/helpers/db.php” line 302 I get PHP errors because variable $code_db response NULL instead 0.

    Fix for this, change line 302

    from

    $code_unique = ( sizeof( $code_db ) == 0);

    to

    $code_unique = ( @sizeof( $code_db ) === 0 || $code_db === NULL);

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Bug: PHP Error on Code generation’ is closed to new replies.