Merge pull request #1270 from Nexus633/patch-1

Change SELECT id to tranceID
This commit is contained in:
Jan 2020-07-21 12:46:51 +02:00 committed by GitHub
commit fc16a75188
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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';
}
}