Skip to content
Snippets Groups Projects
Commit a0094d28 authored by Robin McCorkell's avatar Robin McCorkell
Browse files

Explicitly cast number to integer

parent 41e79675
No related branches found
No related tags found
No related merge requests found
...@@ -142,7 +142,7 @@ class Storage { ...@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment