Fix "Invalid argument supplied for foreach()"
Fix "Invalid argument supplied for foreach()"

Signed-off-by: Roger Szabo <dc37a71e64d221bc87b5efd1bee9ff475d72ac07@web.de>

nextcloud/server,andreas-p/nextcloud-server,andreas-p/nextcloud-server,nextcloud/server,andreas-p/nextcloud-server,andreas-p/nextcloud-server,nextcloud/server,nextcloud/server,andreas-p/nextcloud-server