fixed an other "Fatal error: [] operator not supported for strings" error reported by Bastian Schern

This commit is contained in:
Ralf Becker 2006-07-31 18:10:43 +00:00
parent 33310098b9
commit b3454d9983

View File

@ -986,8 +986,9 @@ class so_ldap
*/
function _evolutionperson2egw(&$contact,$data)
{
if (is_array($data['category']))
if ($data['category'] && is_array($data['category']))
{
$contact['cat_id'] = array();
foreach($data['category'] as $iii => $cat)
{
if (!is_int($iii)) continue;