diff --git a/main/forum/forumfunction.inc.php b/main/forum/forumfunction.inc.php index 2520aa9fd6..285e8cc840 100644 --- a/main/forum/forumfunction.inc.php +++ b/main/forum/forumfunction.inc.php @@ -562,7 +562,7 @@ function delete_post($post_id) thread_last_post='".mysql_real_escape_string($last_post_of_thread['post_id'])."', thread_date='".mysql_real_escape_string($last_post_of_thread['post_date'])."' WHERE thread_id='".mysql_real_escape_string($_GET['thread'])."'"; - echo $sql; + api_sql_query($sql,__FILE__,__LINE__); return 'PostDeleted'; }