mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
fixed PHP 5.4 Warning: Illegal string offset
This commit is contained in:
parent
3e8501a139
commit
feb6076acf
@ -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 "<p>cats2color('$cats')=$color</p>\n";
|
||||
return $cat2color[$cats] = $cat2color[$cat] = $color;
|
||||
|
Loading…
Reference in New Issue
Block a user