[-] BO : Fix possible Uncaught exception 'ReflectionException' when viewing AdminMeta
This commit is contained in:
1 parent
53805f2b93
commit
9f12ff15be
1 file changed
+3
@@ -68,7 +68,10 @@ class MetaCore extends ObjectModel
|
|||||||
{
|
{
|
||||||
if ($file != 'index.php' && !in_array(strtolower(str_replace('Controller.php', '', $file)), $exlude_pages))
|
if ($file != 'index.php' && !in_array(strtolower(str_replace('Controller.php', '', $file)), $exlude_pages))
|
||||||
{
|
{
|
||||||
|
$class_name = str_replace('.php', '', $file);
|
||||||
|
if (class_exists($class_name))
|
||||||
$reflection = new ReflectionClass(str_replace('.php', '', $file));
|
$reflection = new ReflectionClass(str_replace('.php', '', $file));
|
||||||
|
if (isset($reflection) && $reflection)
|
||||||
$properties = $reflection->getDefaultProperties();
|
$properties = $reflection->getDefaultProperties();
|
||||||
if (isset($properties['php_self']))
|
if (isset($properties['php_self']))
|
||||||
$selected_pages[$properties['php_self']] = $properties['php_self'];
|
$selected_pages[$properties['php_self']] = $properties['php_self'];
|
||||||
|
|||||||
Reference in new issue
Block a user