Skip to content

Commit

Permalink
Fix sql statement
Browse files Browse the repository at this point in the history
  • Loading branch information
lemonsoftwarero committed Jun 11, 2007
1 parent 2f7d8d8 commit b89cd34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/plugins/function.xl.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b89cd34

Please sign in to comment.