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()
{
$showDays = CcShowDaysQuery::create()->filterByDbShowId($this->getId())->find();
$days = array();
foreach ($showDays as $showDay) {
array_push($days, $showDay->getDbDay());
}
return $days;
$showDays = CcShowDaysQuery::create()->filterByDbShowId(
$this->getId())->find();
return array_map( function($showDay) {
return $showDay->getDbDay();
}, $showDays);
}
/* Only used for shows that aren't repeating.