}
dba::close($terms);
- $items = Item::select(local_user(), Item::DISPLAY_FIELDLIST, ['id' => array_reverse($itemids)]);
+ $items = Item::selectForUser(local_user(), [], ['id' => array_reverse($itemids)]);
$r = dba::inArray($items);
} else {
logger("Start fulltext search for '".$search."'", LOGGER_DEBUG);
local_user(), $search];
$params = ['order' => ['id' => true],
'limit' => [$a->pager['start'], $a->pager['itemspage']]];
- $items = Item::select(local_user(), Item::DISPLAY_FIELDLIST, $condition, $params);
+ $items = Item::selectForUser(local_user(), [], $condition, $params);
$r = dba::inArray($items);
}