Fixed a bug where we weren't checking if a variable was empty before using it
This commit is contained in:
parent
2670bfae7a
commit
a21b4f177d
@ -183,6 +183,9 @@ class Application_Service_SchedulerService
|
||||
->limit(1)
|
||||
->findOne();
|
||||
|
||||
if (is_null($showInstanceWithMostRecentSchedule)) {
|
||||
return null;
|
||||
}
|
||||
$instanceId = $showInstanceWithMostRecentSchedule->getDbId();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user