jmontoyaa 8 yıl önce
ebeveyn
işleme
0fdc16f525
1 değiştirilmiş dosya ile 1 ekleme ve 2 silme
  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);