Исправление неопределенной переменной

1 parent c851fc8b
Showing with 1 additions and 0 deletions
......@@ -38,6 +38,7 @@ class Controller extends /*WRestController*/ CController
public function handleError(CEvent $event)
{
$error = ($event instanceof CExceptionEvent) ? $event->exception : $event;
$type = null;
if($event instanceof CExceptionEvent) {
if(($trace = $this->getExactTrace($error)) === null) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!