zxhxx 4 years ago
parent
commit
c26b8b72b9
1 changed files with 3 additions and 1 deletions
  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)
                 ->where($where)
                 ->order($sort, $order)
                 ->order($sort, $order)
                 ->paginate($limit);
                 ->paginate($limit);
-            foreach ($list as $k => $v) {
+            if($list) {
+                foreach ($list as $k => $v) {
+                }
             }
             }
             $result = array("total" => $list->total(), "rows" => $list->items());
             $result = array("total" => $list->total(), "rows" => $list->items());