CC-3696: more rebroadcast show instances will be created after change the calendar

-fixed
This commit is contained in:
Martin Konecny 2012-04-24 17:52:07 -04:00
parent 18caafac48
commit 3bc919affb
1 changed files with 2 additions and 2 deletions

View File

@ -856,8 +856,8 @@ class Application_Model_Show {
." WHERE date(starts) = date(TIMESTAMP '$timestamp') "
." AND show_id = $showId";
$query = $con->query();
$row = $query ? $query->fetchColumn(0) : null;
$query = $con->query($sql);
$row = ($query !== false) ? $query->fetchColumn(0) : null;
return CcShowInstancesQuery::create()
->findPk($row);
}