Explorar o código

resolved #1153

Bruce Lam %!s(int64=4) %!d(string=hai) anos
pai
achega
ba82dfd394
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/Support/Helper.php

+ 3 - 0
src/Support/Helper.php

@@ -844,6 +844,9 @@ class Helper
      */
     public static function htmlEntityEncode($item)
     {
+        if (is_object($item)) {
+            $item = json_decode(json_encode($item), true);
+        }
         if (is_array($item)) {
             array_walk_recursive($item, function (&$value) {
                 $value = htmlentities($value);