CC-4152: Widget does not display current show in some modes

-fixed
This commit is contained in:
Martin Konecny 2012-08-06 17:07:18 -04:00
parent 8d2348606c
commit 40023d9086
3 changed files with 27 additions and 17 deletions

View file

@ -109,7 +109,7 @@ class Application_Model_Schedule {
$sql .= ' AND st.playout_status > 0 ORDER BY st.starts';
$rows = $con->query($sql)->fetchAll();
$rows = $con->query($sql)->fetchAll(PDO::FETCH_ASSOC);
$numberOfRows = count($rows);
$results['previous'] = null;

View file

@ -1736,7 +1736,7 @@ class Application_Model_Show {
." AND modified_instance != TRUE";
// Convert back to local timezone
$rows = $con->query($sql)->fetchAll();
$rows = $con->query($sql)->fetchAll(PDO::FETCH_ASSOC);
return $rows;
}
@ -1850,7 +1850,7 @@ class Application_Model_Show {
* @param String $timeEnd - interval end time (in UTC)
* @return array - the next $limit number of shows within the time interval
*/
public static function GetNextShows($timeStart, $limit = "0", $timeEnd = "")
public static function getNextShows($timeStart, $limit = "0", $timeEnd = "")
{
global $CC_CONFIG;
$con = Propel::getConnection();
@ -1877,7 +1877,7 @@ class Application_Model_Show {
$sql = $sql . " LIMIT $limit";
}
$rows = $con->query($sql)->fetchAll();
$rows = $con->query($sql)->fetchAll(PDO::FETCH_ASSOC);
return $rows;
}