star7th %!s(int64=7) %!d(string=hai) anos
pai
achega
7b7d2be9ee
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      server/Application/Api/Controller/ItemController.class.php

+ 1 - 1
server/Application/Api/Controller/ItemController.class.php

@@ -189,7 +189,7 @@ class ItemController extends BaseController {
                 unset($items[$key]);
             }
         }
-
+        $items = array_values($items);
         //读取需要置顶的项目
         $top_items = D("ItemTop")->where("uid = '$login_user[uid]'")->select();
         if ($top_items) {