summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2015-03-10 12:57:06 +0100
committerczaks <marcin@6irc.net>2015-03-10 12:57:06 +0100
commitf4bba2e9ed7cbce52c1f33c3f6b5bfac6e8261c3 (patch)
tree2fd7eb21973fba5d7da8b90964e35d5ac45c1464 /inc
parentbdb6001f3f7e93e0b9655c0491bbef6f1df8a5fa (diff)
...
Diffstat (limited to 'inc')
-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);