fixed autoplaylist database logic and icon position

This commit is contained in:
Robb Ebright 2018-01-03 22:01:46 -05:00
parent 81b418b636
commit 18a7ff5c0a
3 changed files with 9 additions and 6 deletions

View file

@ -1024,8 +1024,6 @@ SQL;
$p_start, $p_end);
$isFull = Application_Model_ShowInstance::getIsFull($p_start, $p_end);
$hasAutoPlaylist = Application_Model_ShowInstance::getShowHasAutoplaylist($p_start, $p_end);
$displayTimezone = new DateTimeZone(Application_Model_Preference::GetUserTimezone());
$utcTimezone = new DateTimeZone("UTC");
$now = new DateTime("now", $utcTimezone);
@ -1067,9 +1065,9 @@ SQL;
$options["show_partial_filled"] = true;
}
if (array_key_exists($show['instance_id'], $hasAutoPlaylist)) {
$options["show_has_auto_playlist"] = !$hasAutoPlaylist[$show['instance_id']];
} else {
$options["show_has_auto_playlist"] = true;
} else {
$options["show_has_auto_playlist"] = false;
}
$event = array();