public function actionRatings() { $result = $this->ics->getEmptyRatings($this->user->id); if ($result) { $this->template->items = $this->ics->ReadMultiple(0, new NFilter(ICF::NO, array_map(function ($row) { return $row->items_no; }, $result))); } else { $this->template->items = []; } }