mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +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 = [];
|
$agents_aux = [];
|
||||||
foreach ($agents as $key => $value) {
|
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;
|
$agents_aux[$key] = $value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user