This commit is contained in:
Rudi Grinberg 2012-09-07 14:33:08 -04:00
parent 5ee24ceb23
commit 49a85afc06
1 changed files with 5 additions and 8 deletions

View File

@ -877,14 +877,11 @@ SQL;
public function getShowDays() public function getShowDays()
{ {
$showDays = CcShowDaysQuery::create()->filterByDbShowId($this->getId())->find(); $showDays = CcShowDaysQuery::create()->filterByDbShowId(
$this->getId())->find();
$days = array(); return array_map( function($showDay) {
foreach ($showDays as $showDay) { return $showDay->getDbDay();
array_push($days, $showDay->getDbDay()); }, $showDays);
}
return $days;
} }
/* Only used for shows that aren't repeating. /* Only used for shows that aren't repeating.