Aggiunto filtro per account email cancellati

This commit is contained in:
Luca 2018-08-10 16:06:06 +02:00
parent c68b35cd6b
commit 3ee12fdd85
1 changed files with 3 additions and 0 deletions

View File

@ -9,6 +9,9 @@ switch ($resource) {
foreach ($elements as $element) { foreach ($elements as $element) {
$filter[] = 'id = '.prepare($element); $filter[] = 'id = '.prepare($element);
} }
if (empty($filter)) {
$where[] = 'deleted_at IS NULL';
}
if (!empty($search)) { if (!empty($search)) {
$search_fields[] = 'name LIKE '.prepare('%'.$search.'%'); $search_fields[] = 'name LIKE '.prepare('%'.$search.'%');
} }