mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
minor fix while empty search condition
This commit is contained in:
parent
b62dc5c0c2
commit
c64f05dc17
@ -177,7 +177,9 @@ if (is_ajax() === true) {
|
||||
|
||||
$agents_aux = [];
|
||||
foreach ($agents as $key => $value) {
|
||||
if (preg_match('/'.$search.'/', io_safe_output($value)) === true) {
|
||||
if (empty($search) === true) {
|
||||
$agents_aux[$key] = $value;
|
||||
} else if (preg_match('/'.$search.'/', io_safe_output($value)) === true) {
|
||||
$agents_aux[$key] = $value;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user