Browse Source

Bug fixed in exception handling, #16

git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/branches/evo@128 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
master
pzinovkin 15 years ago
parent
commit
41bc23cfab
  1. 4
      app/ErrorAction.php

4
app/ErrorAction.php

@ -15,7 +15,7 @@ class ErrorAction extends Action
/** /**
* @var ErrorException * @var ErrorException
*/ */
protected $exception;
public $exception;
public function __construct($exception) public function __construct($exception)
{ {
@ -54,7 +54,7 @@ class ErrorAction extends Action
protected function logError() protected function logError()
{ {
if ($this->template = 500) {
if ($this->template == 500) {
$error = 0; $error = 0;
$ex = $this->exception; $ex = $this->exception;

Loading…
Cancel
Save