summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rw-r--r--inc/mod.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/inc/mod.php b/inc/mod.php
index 46d966fe..a6cf3793 100644
--- a/inc/mod.php
+++ b/inc/mod.php
@@ -152,6 +152,10 @@
$id
), $sql) or error(mysql_error($sql));
+ if(mysql_num_rows($post_res) < 1) {
+ error(ERROR_INVALIDPOST);
+ }
+
// Delete posts and maybe replies
while($post = mysql_fetch_array($post_res)) {