Merge pull request #19088 from owncloud/fix-availability-int

Explicitly cast number to integer
This commit is contained in:
Thomas Müller 2015-09-18 08:31:56 +02:00
commit 2eeb1b2b79
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ class Storage {
public function getAvailability() { public function getAvailability() {
if ($row = self::getStorageById($this->storageId)) { if ($row = self::getStorageById($this->storageId)) {
return [ return [
'available' => ($row['available'] === 1), 'available' => ((int)$row['available'] === 1),
'last_checked' => $row['last_checked'] 'last_checked' => $row['last_checked']
]; ];
} else { } else {