diff options
author | Robin McCorkell <rmccorkell@owncloud.com> | 2015-09-16 11:22:52 +0100 |
---|---|---|
committer | Robin McCorkell <rmccorkell@owncloud.com> | 2015-09-16 11:22:52 +0100 |
commit | a0094d28f19b3ee4a32b52bbe8eec596a7035a3d (patch) | |
tree | d792799673beb045e098081fdbf7e826a5743b67 /lib/private/files | |
parent | 41e79675c3f2409df13a2b06f0ad9d55fa0ec5ad (diff) | |
download | nextcloud-server-a0094d28f19b3ee4a32b52bbe8eec596a7035a3d.tar.gz nextcloud-server-a0094d28f19b3ee4a32b52bbe8eec596a7035a3d.zip |
Explicitly cast number to integer
Diffstat (limited to 'lib/private/files')
-rw-r--r-- | lib/private/files/cache/storage.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/files/cache/storage.php b/lib/private/files/cache/storage.php index a116e84b3f2..88ceb287fb9 100644 --- a/lib/private/files/cache/storage.php +++ b/lib/private/files/cache/storage.php @@ -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 { |