this fixes a count warning in null condition new with 7.2

This commit is contained in:
Robbt 2019-02-18 16:57:25 -05:00
parent e13fc6b3d9
commit 48a2a49b30
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ SQL;
$utcNow = new DateTime("now", new DateTimeZone("UTC"));
$shows = Application_Model_Show::getPrevCurrentNext($utcNow, $utcTimeEnd, $showsToRetrieve);
$currentShowID = count($shows['currentShow'])>0?$shows['currentShow']['instance_id']:null;
$currentShowID = (is_array($shows['currentShow'] && count($shows['currentShow'])>0))?$shows['currentShow']['instance_id']:null;
$source = self::_getSource();
$results = Application_Model_Schedule::getPreviousCurrentNextMedia($utcNow, $currentShowID, self::_getSource());