From 0cf887cd8679223a7a3ef12c697f6d4e1144b0e3 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Fri, 19 Dec 2008 23:09:39 -0500 Subject: Fixed Draft->Pending deletion bug Previously, if a draft was being moved into the pending queue, it would be deleted instead. The problem turned out to be the fact that when the tag system was changed (409d99f03471), the single instance in the admin panel of a draft being changed into a pending post was not fixed as the rest were. The extra column in the "INSERT" query annoyed MySQL as that column no longer exists. --- pages/admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pages/admin.php') diff --git a/pages/admin.php b/pages/admin.php index 11cb35c..ecd90f5 100755 --- a/pages/admin.php +++ b/pages/admin.php @@ -179,7 +179,7 @@ if (isLoggedIn()) generateError(404); } - $inspending = "INSERT INTO pending (id,title,author,text,tags,slug) VALUES (" . $id . ",\"" . addslashes($_POST['title']) . "\",\"" . sess_get('uname') . "\",\"" . addslashes($_POST['text']) . "\",\"" . $tags . "\",\"" . generateSlug($_POST['title'],'updates') . "\")"; + $inspending = "INSERT INTO pending (id,title,author,text,slug) VALUES (" . $id . ",\"" . addslashes($_POST['title']) . "\",\"" . sess_get('uname') . "\",\"" . addslashes($_POST['text']) . "\",\"" . generateSlug($_POST['title'],'updates') . "\")"; $inspending2 = mysql_query($inspending); addTags($id, $tags, 'pending'); -- cgit 1.4.1