diff --git a/admin/admin_forum_manager.php b/admin/admin_forum_manager.php
index fd4cb348..b43f03be 100644
--- a/admin/admin_forum_manager.php
+++ b/admin/admin_forum_manager.php
@@ -233,7 +233,7 @@
default:
$categoryHandler = xoops_getModuleHandler('category', 'newbb');
- $criteriaCategory = new CriteriaCompo(new criteria('1', 1));
+ $criteriaCategory = new CriteriaCompo(new Criteria('cat_id'));
$criteriaCategory->setSort('cat_order');
$categories = $categoryHandler->getList($criteriaCategory);
if (0 === count($categories)) {
@@ -254,7 +254,7 @@
$echo .= '';
$categoryHandler = xoops_getModuleHandler('category', 'newbb');
- $criteriaCategory = new CriteriaCompo(new criteria('1', 1));
+ $criteriaCategory = new CriteriaCompo(new Criteria('cat_id'));
$criteriaCategory->setSort('cat_order');
$categories = $categoryHandler->getList($criteriaCategory);
$forums = $forumHandler->getTree(array_keys($categories), 0, 'all');
diff --git a/admin/admin_forum_reorder.php b/admin/admin_forum_reorder.php
index 7c6c06b6..4e82f779 100644
--- a/admin/admin_forum_reorder.php
+++ b/admin/admin_forum_reorder.php
@@ -75,7 +75,7 @@
$forumHandler = xoops_getModuleHandler('forum', 'newbb');
$categoryHandler = xoops_getModuleHandler('category', 'newbb');
- $criteriaCategory = new CriteriaCompo(new criteria('1', 1));
+ $criteriaCategory = new CriteriaCompo(new Criteria('cat_id'));
$criteriaCategory->setSort('cat_order');
$categories = $categoryHandler->getAll($criteriaCategory, ['cat_id', 'cat_order', 'cat_title']);
$forums = $forumHandler->getTree(array_keys($categories), 0, 'all', ' ');
diff --git a/admin/admin_groupmod.php b/admin/admin_groupmod.php
index 1013d2fa..855fa15e 100644
--- a/admin/admin_groupmod.php
+++ b/admin/admin_groupmod.php
@@ -70,7 +70,7 @@
echo "
"; echo " |