Browse Source

Bugfix: Avoid a warning if "theme_info" isn't an array

pull/2674/head
Michael Vogel 5 years ago
parent
commit
fdd679636b
  1. 4
      include/plugin.php

4
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 '';
}
}
Loading…
Cancel
Save