Commit f7241e29 authored by Manfred Kutas's avatar Manfred Kutas

ZP-1260 Improve isset in ASDevice->GetFolderSyncStatus().

Released under the Affero GNU General Public License (AGPL) version 3.
parent 1a9be5c8
......@@ -775,11 +775,11 @@ class ASDevice extends StateObject {
* @return mixed/boolean false means the status is not available
*/
public function GetFolderSyncStatus($folderid) {
if (isset($this->contentData) && isset($this->contentData[$folderid]) &&
isset($this->contentData[$folderid][self::FOLDERUUID]) && $this->contentData[$folderid][self::FOLDERUUID] !== false &&
isset($this->contentData[$folderid][self::FOLDERSYNCSTATUS]) )
if (isset($this->contentData[$folderid][self::FOLDERUUID], $this->contentData[$folderid][self::FOLDERSYNCSTATUS]) &&
$this->contentData[$folderid][self::FOLDERUUID] !== false) {
return $this->contentData[$folderid][self::FOLDERSYNCSTATUS];
}
return false;
}
......
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