mirror of
https://github.com/retailcrm/legacy.git
synced 2025-02-16 14:53:16 +03:00
add trim in filter
This commit is contained in:
parent
762cd0ab97
commit
2b7d0f1436
@ -25,6 +25,8 @@ class DataHelper
|
||||
|
||||
if (is_null($haystack[$key]) || $haystack[$key] === '' || count($haystack[$key]) == 0) {
|
||||
unset($haystack[$key]);
|
||||
} elseif (!is_array($value)) {
|
||||
$haystack[$key] = trim($value);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user