star7th 7 years ago
parent
commit
7b7d2be9ee
1 changed files with 1 additions and 1 deletions
  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) {