Merge branch '2.2.x' of dev.sourcefabric.org:airtime into 2.2.x
This commit is contained in:
commit
da873b321b
|
@ -1792,7 +1792,7 @@ SQL;
|
|||
$show["instance_id"]);
|
||||
|
||||
$options["show_empty"] = (array_key_exists($show['instance_id'],
|
||||
$content_count)) ? 1 : 0;
|
||||
$content_count)) ? 0 : 1;
|
||||
|
||||
$events[] = &self::makeFullCalendarEvent($show, $options,
|
||||
$startsDT, $endsDT, $startsEpochStr, $endsEpochStr);
|
||||
|
|
|
@ -674,14 +674,14 @@ WHERE ends > :p_start::TIMESTAMP
|
|||
GROUP BY instance_id
|
||||
SQL;
|
||||
|
||||
$counts = Application_Common_Database::prepareAndExecute( $sql, array(
|
||||
$counts = Application_Common_Database::prepareAndExecute($sql, array(
|
||||
':p_start' => $p_start->format("Y-m-d G:i:s"),
|
||||
':p_end' => $p_end->format("Y-m-d G:i:s"))
|
||||
, 'all');
|
||||
|
||||
return $counts;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public function showEmpty()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue