Commit 83235040 authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-1119 Fixed warnings if device has no additional folders.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 3b14faef
......@@ -810,7 +810,10 @@ class ASDevice extends StateObject {
* @return array
*/
public function GetAdditionalFolders() {
return array_values($this->additionalfolders);
if (is_array($this->additionalfolders)) {
return array_values($this->additionalfolders);
}
return array();
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment