From a0094d28f19b3ee4a32b52bbe8eec596a7035a3d Mon Sep 17 00:00:00 2001
From: Robin McCorkell <rmccorkell@owncloud.com>
Date: Wed, 16 Sep 2015 11:22:52 +0100
Subject: [PATCH] Explicitly cast number to integer

---
 lib/private/files/cache/storage.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/private/files/cache/storage.php b/lib/private/files/cache/storage.php
index a116e84b3f..88ceb287fb 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 {
-- 
GitLab