Browse Source

Update CatalogController.class.php

star7th 8 years ago
parent
commit
1707a464a6
1 changed files with 5 additions and 1 deletions
  1. 5 1
      Application/Home/Controller/CatalogController.class.php

+ 5 - 1
Application/Home/Controller/CatalogController.class.php

@@ -44,7 +44,11 @@ class CatalogController extends BaseController {
             $this->message(L('no_permissions'));
             return;
         }
-
+        //禁止空目录的生成
+        if (!$cat_name) {
+            return;
+        }
+        
         $data['cat_name'] = $cat_name ;
         $data['s_number'] = $s_number ;
         $data['item_id'] = $item_id ;