From b89cd349c66baa2c3cc0d9105a545ffb546d5a57 Mon Sep 17 00:00:00 2001 From: lemonsoftwarero Date: Mon, 11 Jun 2007 17:24:04 +0000 Subject: [PATCH] Fix sql statement --- library/plugins/function.xl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/plugins/function.xl.php b/library/plugins/function.xl.php index 8f7d36e5b..6dde6ec46 100644 --- a/library/plugins/function.xl.php +++ b/library/plugins/function.xl.php @@ -36,7 +36,7 @@ function smarty_function_xl($params, &$smarty) $sql = "SELECT * FROM lang_definitions JOIN lang_constants ON " . "lang_definitions.cons_id = lang_constants.cons_id WHERE " . "lang_id='$lang_id' AND constant_name = '" . - addslashes($constant) . "' LIMIT 1"; + addslashes($translate) . "' LIMIT 1"; $res = SqlStatement($sql); $row = SqlFetchArray($res); -- 2.11.4.GIT