Commit 7cc48539 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix noisy warning message in logs


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 213a4857
......@@ -561,7 +561,7 @@ function get_user_accessible_themes() {
else {
$themelist = get_all_theme_objects();
foreach ($themelist AS $subdir => $theme) {
if (!is_array($theme->institutions)) {
if (!isset($theme->institutions) || !is_array($theme->institutions)) {
$themes[$subdir] = isset($theme->displayname) ? $theme->displayname : $subdir;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment