DataObjects/Cms_page_category.php
authorAlan Knowles <alan@roojs.com>
Wed, 12 Jul 2017 08:02:44 +0000 (16:02 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 12 Jul 2017 08:02:44 +0000 (16:02 +0800)
DataObjects/Cms_page_category.php

index 4c64cb6..81b6f14 100644 (file)
@@ -86,14 +86,14 @@ class Pman_Cms_DataObjects_Cms_page_category  extends DB_DataObject
         
         foreach ($display_names as $id=>$name){
             if($base[$id] == 'page'){
-                $categories = array_merge($categories, $sub['page']);
+                
                 $categories[] = array(
                     'pid' => $id,
                     'name' => $base[$id],
                     'display_name' => "{$name} (All)",
                     'type' => 'page_type'
                 );
-                
+                $categories = array_merge($categories, $sub['page']);
                 continue;
             }