Преглед изворни кода

[HttpKernel] Fixed the test about the availability of the logger

Christophe Coevoet пре 14 година
родитељ
комит
f84ee37ae0
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/Symfony/Component/HttpKernel/Profiler/Profiler.php

+ 1 - 1
src/Symfony/Component/HttpKernel/Profiler/Profiler.php

@@ -88,7 +88,7 @@ class Profiler
      */
     public function saveProfile(Profile $profile)
     {
-        if (!$ret = $this->storage->write($profile) && null !== $this->logger) {
+        if (!($ret = $this->storage->write($profile)) && null !== $this->logger) {
             $this->logger->err('Unable to store the profiler information.');
         }