mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-28 01:10:51 +01:00
Check if post exists when deleting
This commit is contained in:
parent
a395805e58
commit
f45d3fdb32
@ -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…
Reference in New Issue
Block a user