Skip to content
This repository has been archived by the owner on Oct 8, 2023. It is now read-only.

Commit

Permalink
Sometimes it's an object, sometimes it's not
Browse files Browse the repository at this point in the history
  • Loading branch information
mkody committed Jun 22, 2018
1 parent 1645179 commit 20ad92b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/app/controllers/Admin.php
Expand Up @@ -14,10 +14,10 @@ public function home($f3) {

private function checkIncompleteZap($day) {
// Get latest schedule entry for the day
$l = array_values(array_slice($day, -1))[0];
$l = (array) array_values(array_slice($day, -1))[0];

// Get its ending hour
$ts = $l->timestamp_end;
$ts = $l['timestamp_end'];
$tz = new DateTimeZone('America/New_York');
$d = new DateTime();
$d->setTimestamp($ts);
Expand Down

0 comments on commit 20ad92b

Please sign in to comment.