From 1d7fdef79d0bf36f19f53fce3f300c67138f10ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?X=C3=A9fir=20Destiny?= Date: Sun, 1 Sep 2013 18:00:53 +0200 Subject: [PATCH] Wrong wrong wrong but finnaly right --- wpf.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpf.class.php b/wpf.class.php index 370990d..2089823 100644 --- a/wpf.class.php +++ b/wpf.class.php @@ -2118,7 +2118,7 @@ class mingleforum{ function remove_post(){ global $user_ID, $wpdb; $id = (isset($_GET['id']) && is_numeric($_GET['id']))?$_GET['id']:0; - $author = $wpdb->get_row($wpdb->prepare("SELECT author_id, parent_id from {$this->t_posts} where id = %d"), $id); + $author = $wpdb->get_row("SELECT author_id, parent_id FROM {$this->t_posts} WHERE id = " . $id); $del = "fail"; if(current_user_can("administrator") || is_super_admin($user_ID))