mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-28 09:20:58 +01:00
Check if post exists when deleting
This commit is contained in:
parent
a395805e58
commit
f45d3fdb32
@ -152,6 +152,10 @@
|
|||||||
$id
|
$id
|
||||||
), $sql) or error(mysql_error($sql));
|
), $sql) or error(mysql_error($sql));
|
||||||
|
|
||||||
|
if(mysql_num_rows($post_res) < 1) {
|
||||||
|
error(ERROR_INVALIDPOST);
|
||||||
|
}
|
||||||
|
|
||||||
// Delete posts and maybe replies
|
// Delete posts and maybe replies
|
||||||
while($post = mysql_fetch_array($post_res)) {
|
while($post = mysql_fetch_array($post_res)) {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user