Added missing quotes in SQL queries.
This commit is contained in:
parent
b035ff63f5
commit
9f3de99946
1 changed files with 1 additions and 1 deletions
|
|
@ -1096,7 +1096,7 @@ sub getForumTemplateVars {
|
|||
$var{"thread.replies.label"} = WebGUI::International::get(1016);
|
||||
$var{'thread.rating.label'} = WebGUI::International::get(1020);
|
||||
$var{"thread.last.label"} = WebGUI::International::get(1017);
|
||||
my $query = "select * from forumThread where forumId=".$forum->get("forumId")." and ";
|
||||
my $query = "select * from forumThread where forumId=".quote($forum->get("forumId"))." and ";
|
||||
if ($forum->isModerator) {
|
||||
$query .= "(status='approved' or status='pending')";
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue