forked from leftypol/leftypol
Check if post exists when deleting
This commit is contained in:
parent
a395805e58
commit
f45d3fdb32
1 changed files with 4 additions and 0 deletions
|
@ -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)) {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue