nicxvan
  1. foreach ($results as $result) {
  2. if (!$result->canView()) {
  3. $results->remove($result);
  4. }
  5. }
nicxvan

the problem is that it's a null object

nightjarnz

@nicxvan DB::get_conn()->searchEngine() returns a list of DataObjects, so, that's fine.

nicxvan

and the form doesn't adequately check that it's an object so the site barfs all over itself