Fixed a bug where we weren't checking if a variable was empty before using it

This commit is contained in:
drigato 2014-09-08 11:48:18 -04:00
parent 2670bfae7a
commit a21b4f177d

View file

@ -183,6 +183,9 @@ class Application_Service_SchedulerService
->limit(1)
->findOne();
if (is_null($showInstanceWithMostRecentSchedule)) {
return null;
}
$instanceId = $showInstanceWithMostRecentSchedule->getDbId();
}