diff --git a/phpgwapi/inc/class.groupdav_handler.inc.php b/phpgwapi/inc/class.groupdav_handler.inc.php index 48fc4dfd29..1851b9d1c8 100644 --- a/phpgwapi/inc/class.groupdav_handler.inc.php +++ b/phpgwapi/inc/class.groupdav_handler.inc.php @@ -536,6 +536,7 @@ class groupdav_propfind_iterator implements Iterator $this->start = 0; $this->files = $this->common_files; + if (!$this->files) $this->next(); // otherwise valid will return false and nothing get returned reset($this->files); }