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

Explicitly cast number to integer
remotes/origin/db-empty-migrate
Thomas Müller 2015-09-18 08:31:56 +07:00
commit 2eeb1b2b79
1 changed files with 1 additions and 1 deletions

@ -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 {