$idimpianto) { $temp[] = 'idimpianto='.prepare($idimpianto); } $where[] = '('.implode(' OR ', $temp).')'; if (!empty($search)) { $search_fields[] = 'nome LIKE '.prepare('%'.$search.'%'); } $custom['contenuto'] = 'contenuto'; $results = AJAX::completeResults($query, $where, $filter, $search, $custom); foreach ($results as $key => $value) { $matricola = \Util\Ini::getValue($r['contenuto'], 'Matricola'); $results[$key]['text'] = (empty($matricola) ? '' : $matricola.' - ').$results[$key]['text']; unset($results[$key]['content']); } } break; }