From 48a2a49b308452b36d4b1d07dbfeb8920cf8c222 Mon Sep 17 00:00:00 2001 From: Robbt Date: Mon, 18 Feb 2019 16:57:25 -0500 Subject: [PATCH] this fixes a count warning in null condition new with 7.2 --- airtime_mvc/application/models/Schedule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airtime_mvc/application/models/Schedule.php b/airtime_mvc/application/models/Schedule.php index e74fc1563..2386afc56 100644 --- a/airtime_mvc/application/models/Schedule.php +++ b/airtime_mvc/application/models/Schedule.php @@ -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());