fixed bug introduce in fix: no more serialized cat data (like calendar colors) were returned

This commit is contained in:
Ralf Becker 2010-10-26 07:42:33 +00:00
parent d00b710a7a
commit c8da8e39ef

View File

@ -394,9 +394,9 @@ class categories
if (!isset(self::$cache[$id])) return false;
$cat = self::$cache[$id];
$cat['data'] = $cat['data'] ? (($arr=unserialize($cat['data']) !== false && $cat['data'] !== 'b:0;') ?
$cat['data'] = $cat['data'] ? ((($arr=unserialize($cat['data'])) !== false || $cat['data'] === 'b:0;') ?
$arr : $cat['data']) : array();
return $cat;
}