1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-27 00:06:14 +01:00

Aggiunto filtro per account email cancellati

This commit is contained in:
Luca 2018-08-10 16:06:06 +02:00
parent c68b35cd6b
commit 3ee12fdd85

View File

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