star7th hace 7 años
padre
commit
7b7d2be9ee
Se han modificado 1 ficheros con 1 adiciones y 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) {