Permalink
Browse files

[BUGFIX] Change in tidy-behaviour triggered wrongful logging

  • Loading branch information...
1 parent 77db56d commit a1169dcea65d32a0ec031aa32192ce3ffa6cfd3a @robo47 committed Apr 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 library/Robo47/Controller/Plugin/Tidy.php
@@ -199,7 +199,7 @@ public function dispatchLoopShutdown()
$pos = strpos(
$tidy->errorBuffer, 'No warnings or errors were found'
);
- if (false === $pos) {
+ if (false === $pos && $tidy->errorBuffer !== null) {
$this->_log->log(
'Url: ' . $this->getRequest()->getRequestUri() .
PHP_EOL . $tidy->errorBuffer, $this->getLogPriority(),

0 comments on commit a1169dc

Please sign in to comment.