X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fplugin.php;h=e25e9e85b1c367529743f859893968031465b430;hb=0deea97cf296481d792429ae9d4042c66887230d;hp=e2bd23ee2a2ba97438ec913f80cad7abb1e44658;hpb=a64db187313dea2b0b65fa7dfa1c53e52ec3a952;p=friendica.git 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 +}