PHP warning: stristr(): empty needle
-
Hello,
my php log is full with these two lines:
PHP Warning: stristr(): Empty needle in /.../wp-content/plugins/w3-total-cache/lib/Minify/Minify/HTML.php on line 162 PHP Warning: stristr(): Empty needle in /.../wp-content/plugins/w3-total-cache/lib/Minify/Minify/IgnoredCommentPreserver.php on line 36
I think it’s sufficient something like this in both files:
from: if (stristr($comment, $ignoredComment) !== false) { to: if ($ignoredComment && stristr($comment, $ignoredComment) !== false) {
please, can you confirm this?
thank youps: I’m using W3TC 0.9.4.1
- The topic ‘PHP warning: stristr(): empty needle’ is closed to new replies.