FIX - warning при рендере без параметров
This commit is contained in:
parent
f175de000c
commit
9ab2eff6e7
|
|
@ -42,7 +42,10 @@ abstract class Controller
|
||||||
ob_start();
|
ob_start();
|
||||||
}
|
}
|
||||||
|
|
||||||
extract($data);
|
if ( $data && is_array($data) )
|
||||||
|
{
|
||||||
|
extract($data);
|
||||||
|
}
|
||||||
|
|
||||||
include App::getBasedir() . 'views/' . $template;
|
include App::getBasedir() . 'views/' . $template;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue