From fdd679636b71156fa285d516d578cbc2801535b1 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Tue, 12 Jul 2016 12:59:34 +0200 Subject: [PATCH] Bugfix: Avoid a warning if "theme_info" isn't an array --- include/plugin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/plugin.php b/include/plugin.php index e2bd23ee2a..e25e9e85b1 100644 --- a/include/plugin.php +++ b/include/plugin.php @@ -551,7 +551,7 @@ function theme_include($file, $root = '') { if($root !== '' && $root[strlen($root)-1] !== '/') $root = $root . '/'; $theme_info = $a->theme_info; - if(array_key_exists('extends',$theme_info)) + if(is_array($theme_info) AND array_key_exists('extends',$theme_info)) $parent = $theme_info['extends']; else $parent = 'NOPATH'; @@ -571,4 +571,4 @@ function theme_include($file, $root = '') { return $p; } return ''; -} \ No newline at end of file +}