Explicitly cast number to integer

This commit is contained in:
Robin McCorkell 2015-09-16 11:22:52 +01:00
parent 41e79675c3
commit a0094d28f1

View file

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