소스 검색

Fix query

jmontoyaa 8 년 전
부모
커밋
0fdc16f525
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      main/forum/forumfunction.inc.php

+ 1 - 2
main/forum/forumfunction.inc.php

@@ -2103,8 +2103,7 @@ function get_thread_information($thread_id)
             ON (item_properties.ref = threads.thread_id AND threads.c_id = item_properties.c_id)
             WHERE
                 item_properties.tool= '".TOOL_FORUM_THREAD."' AND                
-                threads.id = ".$thread_id."
-            ";
+                threads.iid = $thread_id";
     $result = Database::query($sql);
     $row = Database::fetch_assoc($result);