From 41bc23cfab76c0fe574012af0db71cadd571a525 Mon Sep 17 00:00:00 2001 From: pzinovkin Date: Mon, 15 Mar 2010 20:45:58 +0000 Subject: [PATCH] Bug fixed in exception handling, #16 git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/branches/evo@128 4cb57b5f-5bbd-dd11-951b-001d605cbbc5 --- app/ErrorAction.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/ErrorAction.php b/app/ErrorAction.php index 1ab501d..8fc15dc 100644 --- a/app/ErrorAction.php +++ b/app/ErrorAction.php @@ -15,7 +15,7 @@ class ErrorAction extends Action /** * @var ErrorException */ - protected $exception; + public $exception; public function __construct($exception) { @@ -54,7 +54,7 @@ class ErrorAction extends Action protected function logError() { - if ($this->template = 500) { + if ($this->template == 500) { $error = 0; $ex = $this->exception;