From 727bd0686876327be147ba0112bd8195c24ff062 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 15 Jul 2012 09:55:46 +0000 Subject: [PATCH] fix returned xml for correct expansion is empty --- phpgwapi/inc/class.groupdav_principals.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.groupdav_principals.inc.php b/phpgwapi/inc/class.groupdav_principals.inc.php index eb205a76c0..9c823f18c1 100644 --- a/phpgwapi/inc/class.groupdav_principals.inc.php +++ b/phpgwapi/inc/class.groupdav_principals.inc.php @@ -276,9 +276,10 @@ class groupdav_principals extends groupdav_handler { if ($expand_prop['name'] === $prop_name) break; } - if ($expand_prop['name'] !== $prop_name || !is_array($expand_prop['val']) || $expand_prop['val'][0]['name'] !== 'href') + if ($expand_prop['name'] !== $prop_name || !is_array($expand_prop['val']) || + $expand_prop['val'] && $expand_prop['val'][0]['name'] !== 'href') { - $this->groupdav->log('### NO expand-property report for '.$requested_prop['attrs']['name']); + $this->groupdav->log('### NO expand-property report for '.$requested_prop['attrs']['name'].' ('.$prop_name.')'); continue; }