diff options
author | Starla Insigna <hatkirby@fourisland.com> | 2008-12-19 23:09:39 -0500 |
---|---|---|
committer | Starla Insigna <hatkirby@fourisland.com> | 2008-12-19 23:09:39 -0500 |
commit | 0cf887cd8679223a7a3ef12c697f6d4e1144b0e3 (patch) | |
tree | b15878e29450326fe27264f9c12ef4e780c55834 /pages | |
parent | 8920977261fb6c0fb5ad3e9be0bc07ff35b337cf (diff) | |
download | fourisland-0cf887cd8679223a7a3ef12c697f6d4e1144b0e3.tar.gz fourisland-0cf887cd8679223a7a3ef12c697f6d4e1144b0e3.tar.bz2 fourisland-0cf887cd8679223a7a3ef12c697f6d4e1144b0e3.zip |
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.
Diffstat (limited to 'pages')
-rwxr-xr-x | pages/admin.php | 2 |
1 files changed, 1 insertions, 1 deletions
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()) | |||
179 | generateError(404); | 179 | generateError(404); |
180 | } | 180 | } |
181 | 181 | ||
182 | $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') . "\")"; | 182 | $inspending = "INSERT INTO pending (id,title,author,text,slug) VALUES (" . $id . ",\"" . addslashes($_POST['title']) . "\",\"" . sess_get('uname') . "\",\"" . addslashes($_POST['text']) . "\",\"" . generateSlug($_POST['title'],'updates') . "\")"; |
183 | $inspending2 = mysql_query($inspending); | 183 | $inspending2 = mysql_query($inspending); |
184 | 184 | ||
185 | addTags($id, $tags, 'pending'); | 185 | addTags($id, $tags, 'pending'); |