Fixed a bug where we weren't checking if a variable was empty before using it
This commit is contained in:
parent
ef46b1facc
commit
6598401266
1 changed files with 3 additions and 0 deletions
|
@ -183,6 +183,9 @@ class Application_Service_SchedulerService
|
|||
->limit(1)
|
||||
->findOne();
|
||||
|
||||
if (is_null($showInstanceWithMostRecentSchedule)) {
|
||||
return null;
|
||||
}
|
||||
$instanceId = $showInstanceWithMostRecentSchedule->getDbId();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue