Merge branch '2.2.x' of dev.sourcefabric.org:airtime into 2.2.x
This commit is contained in:
commit
cf18b9203f
3 changed files with 13 additions and 3 deletions
|
@ -1792,7 +1792,7 @@ SQL;
|
||||||
$show["instance_id"]);
|
$show["instance_id"]);
|
||||||
|
|
||||||
$options["show_empty"] = (array_key_exists($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,
|
$events[] = &self::makeFullCalendarEvent($show, $options,
|
||||||
$startsDT, $endsDT, $startsEpochStr, $endsEpochStr);
|
$startsDT, $endsDT, $startsEpochStr, $endsEpochStr);
|
||||||
|
|
|
@ -679,7 +679,11 @@ SQL;
|
||||||
':p_end' => $p_end->format("Y-m-d G:i:s"))
|
':p_end' => $p_end->format("Y-m-d G:i:s"))
|
||||||
, 'all');
|
, 'all');
|
||||||
|
|
||||||
return $counts;
|
$real_counts = array();
|
||||||
|
foreach ($counts as $c) {
|
||||||
|
$real_counts[$c['instance_id']] = $c['instance_count'];
|
||||||
|
}
|
||||||
|
return $real_counts;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -140,6 +140,12 @@ ALTER TABLE cc_playlistcontents
|
||||||
ALTER TABLE cc_schedule
|
ALTER TABLE cc_schedule
|
||||||
ADD COLUMN stream_id integer;
|
ADD COLUMN stream_id integer;
|
||||||
|
|
||||||
|
CREATE INDEX cc_schedule_instance_id_idx
|
||||||
|
ON cc_schedule
|
||||||
|
USING btree
|
||||||
|
(instance_id);
|
||||||
|
|
||||||
|
|
||||||
ALTER TABLE cc_subjs
|
ALTER TABLE cc_subjs
|
||||||
ADD COLUMN cell_phone character varying(255);
|
ADD COLUMN cell_phone character varying(255);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue