while ($raw->fetch()) {
if ($this->filter($raw)) {
$filtered[] = clone($raw);
- if (count($filtered >= $total)) {
+ if (count($filtered) >= $total) {
break;
}
}
$ids = array();
while ($notices->fetch()) {
- $ids[] = $notice->id;
+ $ids[] = $notices->id;
}
return $ids;