PHP Notice
-
Hello Frank,
I’m not sure why it happens. Our PHP-Error.log was full with this message:
[30-Jun-2015 10:15:37 UTC] PHP Notice: Undefined property: autoptimizeStyles::$dontmove in path/to/plugins/autoptimize/classes/autoptimizeStyles.php on line 546
Fix is pretty simple, but is there a special reason why this property is undefined?
private function ismovable($tag) { if(isset($this->dontmove)){ if (is_array($this->dontmove)) { foreach($this->dontmove as $match) { if(strpos($tag,$match)!==false) { //Matched something return false; } } } } //If we're here it's safe to move return true; }
Thank you and best regards,
Bruno
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘PHP Notice’ is closed to new replies.