summaryrefslogtreecommitdiff
path: root/inc/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/functions.php')
-rwxr-xr-xinc/functions.php3
1 files changed, 3 insertions, 0 deletions
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);