diff --git a/stuff/admin/admin_modules.php b/stuff/admin/admin_modules.php index 7b77095f..7b3cb6d6 100644 --- a/stuff/admin/admin_modules.php +++ b/stuff/admin/admin_modules.php @@ -108,7 +108,7 @@ $modullanguage = [ ]; if($modulesid != 0){ - $query6 = $sql->prepare("SELECT `id` FROM `translations` WHERE `type`='mo' AND `lang`=? And `transID`=? LIMIT 1"); + $query6 = $sql->prepare("SELECT `tranceID` FROM `translations` WHERE `type`='mo' AND `lang`=? And `transID`=? LIMIT 1"); $query7 = $sql->prepare("INSERT INTO `translations` (`type`, `lang`, `transID`, `resellerID`, `text`) VALUES (?,?,?,?,?) ON DUPLICATE KEY UPDATE `text`=VALUES(`text`)"); foreach ($modullanguage as $lang){ $query6->execute(array($lang["lang"], $modulesid)); @@ -377,4 +377,4 @@ if ($ui->st('action', 'post') and !token(true)) { configureDateTables('-1', '1, "asc"', 'ajax.php?w=datatable&d=custommodule'); $template_file = 'admin_modules_list.tpl'; -} \ No newline at end of file +}