From 19b89e4902d07e8e1e2f3598215da90304990323 Mon Sep 17 00:00:00 2001 From: Ryuji AMANO Date: Mon, 18 Nov 2024 14:12:15 +0900 Subject: [PATCH] fix:Fixed the part where $xoopsDB was used instead of $db in Legacy_ModuleUpdater::_recoverXoopsGroupPermission(). --- html/modules/legacy/admin/class/Legacy_Updater.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/html/modules/legacy/admin/class/Legacy_Updater.class.php b/html/modules/legacy/admin/class/Legacy_Updater.class.php index 76d4f0bf9..54d68c470 100644 --- a/html/modules/legacy/admin/class/Legacy_Updater.class.php +++ b/html/modules/legacy/admin/class/Legacy_Updater.class.php @@ -202,7 +202,6 @@ public function _setUniqueToGroupUserLink() */ public function _recoverXoopsGroupPermission() { - $xoopsDB = null; $root =& XCube_Root::getSingleton(); $db =& $root->mController->getDB(); @@ -227,7 +226,7 @@ public function _recoverXoopsGroupPermission() if (0 != count($gids)) { $sql = sprintf('DELETE FROM `%s` WHERE `gperm_groupid` IN (%s) AND `gperm_modid`=1', $permTable, implode(',', $gids)); - $result = $xoopsDB->query($sql); + $result = $db->query($sql); if (!$result) { return false; }