summaryrefslogtreecommitdiff
path: root/inc/functions.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-06-04 21:45:10 +1000
committerSavetheinternet <savetheinternet@tinyboard.org>2011-06-04 21:45:10 +1000
commit03b71b509e519ef6c3775ebe79eca805524abbd0 (patch)
treec8b69f67007f81b3cd4201739b9934f6dc3befcc /inc/functions.php
parent3d86bc9bc32975f398233df46626fb7246abe710 (diff)
deleting OP image removed all iamges in the thread
Diffstat (limited to 'inc/functions.php')
-rw-r--r--inc/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/functions.php b/inc/functions.php
index 895d1f2c..36d3c96a 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -629,7 +629,7 @@
if($post['file'] == 'deleted' && !$post['thread'])
return; // Can't delete OP's image completely.
- $query = prepare(sprintf("UPDATE `posts_%s` SET `thumb` = NULL, `thumbwidth` = NULL, `thumbheight` = NULL, `filewidth` = NULL, `fileheight` = NULL, `filesize` = NULL, `filename` = NULL, `filehash` = NULL, `file` = :file WHERE `id` = :id OR `thread` = :id", $board['uri']));
+ $query = prepare(sprintf("UPDATE `posts_%s` SET `thumb` = NULL, `thumbwidth` = NULL, `thumbheight` = NULL, `filewidth` = NULL, `fileheight` = NULL, `filesize` = NULL, `filename` = NULL, `filehash` = NULL, `file` = :file WHERE `id` = :id", $board['uri']));
if($post['file'] == 'deleted' && $remove_entirely_if_already) {
// Already deleted; remove file fully
$query->bindValue(':file', null, PDO::PARAM_NULL);