Skip to content

Commit

Permalink
Fixed array access on bool exception
Browse files Browse the repository at this point in the history
  • Loading branch information
mschering committed Dec 17, 2020
1 parent a6ab8e6 commit 1b87f31
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,7 @@ public function SetFolderSyncStatus($folderid, $statusflag) {
// status available or just initialized
if (isset($currentStatus[ASDevice::FOLDERSYNCSTATUS]) || $statusflag == self::FLD_SYNC_INITIALIZED) {
// only update if there is a change
if ($statusflag !== $currentStatus[ASDevice::FOLDERSYNCSTATUS] && $statusflag != self::FLD_SYNC_COMPLETED) {
if ((!$currentStatus || $statusflag !== $currentStatus[ASDevice::FOLDERSYNCSTATUS] && $statusflag) != self::FLD_SYNC_COMPLETED) {
$this->device->SetFolderSyncStatus($folderid, array(ASDevice::FOLDERSYNCSTATUS => $statusflag));
ZLog::Write(LOGLEVEL_DEBUG, sprintf("SetFolderSyncStatus(): set %s for %s", $statusflag, $folderid));
}
Expand Down

0 comments on commit 1b87f31

Please sign in to comment.