summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-09-18 08:31:56 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-09-18 08:31:56 +0200
commit2eeb1b2b793bae0259874af80e6a5bb99dc224d7 (patch)
treef8190a61bfb234c660e93cff6099e99401eea503 /lib
parent100d9e1976a16b5368dc2514b1e154b97c967a21 (diff)
parenta0094d28f19b3ee4a32b52bbe8eec596a7035a3d (diff)
downloadnextcloud-server-2eeb1b2b793bae0259874af80e6a5bb99dc224d7.tar.gz
nextcloud-server-2eeb1b2b793bae0259874af80e6a5bb99dc224d7.zip
Merge pull request #19088 from owncloud/fix-availability-int
Explicitly cast number to integer
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/cache/storage.php2
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 {