mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Explicitly cast number to integer
This commit is contained in:
parent
41e79675c3
commit
a0094d28f1
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