@@ -333,7 +333,7 @@ public function _renderOptionTree(&$tree, $option, $prefix, $parentIds = [])
333333 $ opform ->display ();
334334
335335 $ categoryHandler = xoops_getModuleHandler ('category ' , 'newbb ' );
336- $ criteriaCategory = new CriteriaCompo (new criteria ( ' 1 ' , 1 ));
336+ $ criteriaCategory = new CriteriaCompo (new Criteria ( ' cat_id ' ));
337337 $ criteriaCategory ->setSort ('cat_order ' );
338338 $ categories = $ categoryHandler ->getList ($ criteriaCategory );
339339
@@ -379,7 +379,7 @@ public function _renderOptionTree(&$tree, $option, $prefix, $parentIds = [])
379379 xoops_cp_header ();
380380
381381 $ categoryHandler = xoops_getModuleHandler ('category ' , 'newbb ' );
382- $ criteriaCategory = new CriteriaCompo (new criteria ( ' 1 ' , 1 ));
382+ $ criteriaCategory = new CriteriaCompo (new Criteria ( ' cat_id ' ));
383383 $ criteriaCategory ->setSort ('cat_order ' );
384384 $ categories = $ categoryHandler ->getList ($ criteriaCategory );
385385
@@ -448,7 +448,7 @@ public function _renderOptionTree(&$tree, $option, $prefix, $parentIds = [])
448448 $ form = new NewbbXoopsGroupPermForm ($ fm_options [$ op ]['title ' ], $ module_id , $ fm_options [$ op ]['item ' ], $ fm_options [$ op ]['desc ' ], 'admin/admin_permissions.php ' , $ fm_options [$ op ]['anonymous ' ]);
449449
450450 $ categoryHandler = xoops_getModuleHandler ('category ' , 'newbb ' );
451- $ criteriaCategory = new CriteriaCompo (new criteria ( ' 1 ' , 1 ));
451+ $ criteriaCategory = new CriteriaCompo (new Criteria ( ' cat_id ' ));
452452 $ criteriaCategory ->setSort ('cat_order ' );
453453 $ categories = $ categoryHandler ->getList ($ criteriaCategory );
454454 if ('category ' === $ op ) {
0 commit comments