瀏覽代碼

[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.');
         }