소스 검색

[HttpKernel] fixed typo

Fabien Potencier 14 년 전
부모
커밋
8df5d42009
1개의 변경된 파일6개의 추가작업 그리고 4개의 파일을 삭제
  1. 6 4
      src/Symfony/Component/HttpKernel/Profiler/Profiler.php

+ 6 - 4
src/Symfony/Component/HttpKernel/Profiler/Profiler.php

@@ -245,10 +245,12 @@ class Profiler
         $data = base64_encode(serialize($this->collectors));
 
         if (true === $this->storage->write($this->token, $data, $this->ip, $this->url, $this->time)) {
-            $this->empty =false;
-        } else {
-            if (null !== $this->logger) {
-                $this->logger->err(sprintf('Unable to store the profiler information (%s).', $e->getMessage()));
+            $this->empty = false;
+        } elseif (null !== $this->logger) {
+            if (null !== $exception) {
+                $this->logger->err(sprintf('Unable to store the profiler information (%s).', $exception->getMessage()));
+            } else {
+                $this->logger->err('Unable to store the profiler information (%s).');
             }
         }
     }