diff --git a/etemplate/inc/class.etemplate_old.inc.php b/etemplate/inc/class.etemplate_old.inc.php index b71d91a21e..7f7e856ecf 100644 --- a/etemplate/inc/class.etemplate_old.inc.php +++ b/etemplate/inc/class.etemplate_old.inc.php @@ -734,7 +734,7 @@ class etemplate_old extends boetemplate } $data = categories::id2name($cat,'data'); - if (($color = $data['color'])) + if (is_array($data) && ($color = $data['color'])) { //echo "
cats2color('$cats')=$color
\n"; return $cat2color[$cats] = $cat2color[$cat] = $color;