add trim in filter

This commit is contained in:
Dmitry Mamontov 2015-10-30 07:22:00 -04:00
parent 762cd0ab97
commit 2b7d0f1436

View File

@ -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);
}
}