zxhxx hace 4 años
padre
commit
c26b8b72b9
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      application/admin/controller/Lave.php

+ 3 - 1
application/admin/controller/Lave.php

@@ -54,7 +54,9 @@ class Lave extends Backend
                 ->where($where)
                 ->order($sort, $order)
                 ->paginate($limit);
-            foreach ($list as $k => $v) {
+            if($list) {
+                foreach ($list as $k => $v) {
+                }
             }
             $result = array("total" => $list->total(), "rows" => $list->items());