Merge pull request #19088 from owncloud/fix-availability-int
Explicitly cast number to integer
This commit is contained in:
commit
2eeb1b2b79
|
@ -142,7 +142,7 @@ class Storage {
|
|||
public function getAvailability() {
|
||||
if ($row = self::getStorageById($this->storageId)) {
|
||||
return [
|
||||
'available' => ($row['available'] === 1),
|
||||
'available' => ((int)$row['available'] === 1),
|
||||
'last_checked' => $row['last_checked']
|
||||
];
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue