From f4bba2e9ed7cbce52c1f33c3f6b5bfac6e8261c3 Mon Sep 17 00:00:00 2001 From: czaks Date: Tue, 10 Mar 2015 12:57:06 +0100 Subject: [PATCH] ... --- inc/functions.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inc/functions.php b/inc/functions.php index 79d06f5c..b318ff35 100755 --- a/inc/functions.php +++ b/inc/functions.php @@ -986,6 +986,9 @@ function post(array $post) { if ($post['op']) { $query->bindValue(':slug', slugify($post)); } + else { + $query->bindValue(':slug', NULL); + } if (!$query->execute()) { undoImage($post);