"fixed warning if only an allprop is present"

This commit is contained in:
Ralf Becker 2008-06-03 17:22:59 +00:00
parent b0fe8d229e
commit e035498517

View File

@ -83,7 +83,7 @@ class calendar_groupdav extends groupdav_handler
return false; return false;
} }
// check if we have to return the full calendar data or just the etag's // check if we have to return the full calendar data or just the etag's
if (!($calendar_data = $options['props'] == 'all' && $options['root']['ns'] == groupdav::CALDAV)) if (!($calendar_data = $options['props'] == 'all' && $options['root']['ns'] == groupdav::CALDAV) && is_array($options['props']))
{ {
foreach($options['props'] as $prop) foreach($options['props'] as $prop)
{ {