• Resolved vbhunt

    (@vbhunt)


    I’m using the easy-pricing-tables plugin in WordPress 4.9.8, with PHP 7.2.10. Line 1908 in easy-pricing-tables/includes/libraries/wpalchemyMetaBox.php throws a warning because of a misuse of the count function. The line reads:
    $cnt = count(!empty($this->meta[$n])?$this->meta[$n]:NULL);
    It can be corrected as follows:
    $cnt = (!empty($this->meta[$n]))? count($this->meta[$n]):0;

Viewing 1 replies (of 1 total)
  • Plugin Author fatcatapps

    (@fatcatapps)

    Hello vbhunt,

    Thanks for bringing this to our attention. We will look into this for the next update of our plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘Misuse of count function in MetaBox.php’ is closed to new replies.