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 ef46b1facc
commit 6598401266

View file

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