diff options
| author | czaks <marcin@6irc.net> | 2015-03-10 12:57:06 +0100 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2015-03-10 12:57:06 +0100 |
| commit | f4bba2e9ed7cbce52c1f33c3f6b5bfac6e8261c3 (patch) | |
| tree | 2fd7eb21973fba5d7da8b90964e35d5ac45c1464 | |
| parent | bdb6001f3f7e93e0b9655c0491bbef6f1df8a5fa (diff) | |
...
| -rwxr-xr-x | inc/functions.php | 3 |
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); |
