mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix legacy Validator trying to trim an object such as $lang
This commit is contained in:
parent
5ed8ef5ef1
commit
dd74d266f5
1 changed files with 1 additions and 1 deletions
|
|
@ -437,7 +437,7 @@ class Validator
|
|||
*/
|
||||
function arrayTrim($array)
|
||||
{
|
||||
if(!is_array($array))
|
||||
if(!is_array($array) && !is_object($array))
|
||||
{
|
||||
return trim($array);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue