Skip to content

Commit

Permalink
Merge pull request #311 from RyujiAMANO/fix/legacy-module-updater
Browse files Browse the repository at this point in the history
fix: Legacy_ModuleUpdater
  • Loading branch information
gigamaster authored Nov 24, 2024
2 parents caf1916 + 19b89e4 commit f9a0809
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions html/modules/legacy/admin/class/Legacy_Updater.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ public function _setUniqueToGroupUserLink()
*/
public function _recoverXoopsGroupPermission()
{
$xoopsDB = null;
$root =& XCube_Root::getSingleton();
$db =& $root->mController->getDB();

Expand All @@ -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;
}
Expand Down

0 comments on commit f9a0809

Please sign in to comment.