Przeglądaj źródła

修复表格数值为0时,列表不显示

Tall 2 lat temu
rodzic
commit
9d785ab590
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      src/Support/Helper.php

+ 2 - 2
src/Support/Helper.php

@@ -836,10 +836,10 @@ class Helper
         }
         if (is_array($item)) {
             array_walk_recursive($item, function (&$value) {
-                $value = htmlentities($value);
+                $value = htmlentities($value ?? '');
             });
         } else {
-            $item = $item ? htmlentities($item) : null;
+            $item = htmlentities($item ?? '');
         }
 
         return $item;