@@ -880,7 +880,7 @@ class ASDevice extends StateObject {
...
@@ -880,7 +880,7 @@ class ASDevice extends StateObject {
returnfalse;
returnfalse;
}
}
// check if a folder with that Name is already in the list and that it's parent exists
// check if a folder with that Name is already in the list and that its parent exists
$parentFound=false;
$parentFound=false;
foreach($this->additionalfoldersas$k=>$folder){
foreach($this->additionalfoldersas$k=>$folder){
// TODO: this parentid check should go into fixstates!
// TODO: this parentid check should go into fixstates!
...
@@ -895,7 +895,7 @@ class ASDevice extends StateObject {
...
@@ -895,7 +895,7 @@ class ASDevice extends StateObject {
}
}
}
}
if($parentid!='0'&&!$parentFound){
if($parentid!='0'&&!$parentFound){
ZLog::Write(LOGLEVEL_ERROR,sprintf("ASDevice->AddAdditionalFolder(): folder can not be added because the parent folder '%s' can not be found: '%s'",$parentid,$folderid));
ZLog::Write(LOGLEVEL_ERROR,sprintf("ASDevice->AddAdditionalFolder(): folder '%s' ('%s') can not be added because the parent folder '%s' can not be found'",$name,$folderid,$parentid));
returnfalse;
returnfalse;
}
}
...
@@ -1068,7 +1068,7 @@ class ASDevice extends StateObject {
...
@@ -1068,7 +1068,7 @@ class ASDevice extends StateObject {