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,8 +810,11 @@ class ASDevice extends StateObject {
* @return array
*/
public function GetAdditionalFolders() {
if (is_array($this->additionalfolders)) {
return array_values($this->additionalfolders);
}
return array();
}
/**
* Returns an additional folder by folder ID.
......
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