mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 06:08:46 -04:00
Merge pull request #19088 from owncloud/fix-availability-int
Explicitly cast number to integer
This commit is contained in:
commit
2eeb1b2b79
1 changed files with 1 additions and 1 deletions
2
lib/private/files/cache/storage.php
vendored
2
lib/private/files/cache/storage.php
vendored
|
|
@ -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 a new issue