From 963ef54e5f5723dca8996000b640adff12a8673b Mon Sep 17 00:00:00 2001 From: Andre Rohlf Date: Tue, 21 Jul 2020 08:24:01 +0200 Subject: [PATCH] Change SELECT id to tranceID Fix Error column not found --- stuff/admin/admin_modules.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}