mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Added check if post exist for IP check
git-svn-id: file:///svn/phpbb/trunk@1631 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
8575c191a2
commit
3d33692557
1 changed files with 6 additions and 1 deletions
|
@ -935,6 +935,11 @@ switch($mode)
|
||||||
{
|
{
|
||||||
message_die(GENERAL_ERROR, "Could not get poster IP information", "Error", __LINE__, __FILE__, $sql);
|
message_die(GENERAL_ERROR, "Could not get poster IP information", "Error", __LINE__, __FILE__, $sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($db->sql_numrows($result) == 0)
|
||||||
|
{
|
||||||
|
message_die(GENERAL_ERROR, "Post doesn't exist", "Error", __LINE__, __FILE__);
|
||||||
|
}
|
||||||
|
|
||||||
$post_row = $db->sql_fetchrow($result);
|
$post_row = $db->sql_fetchrow($result);
|
||||||
|
|
||||||
|
@ -1169,4 +1174,4 @@ switch($mode)
|
||||||
|
|
||||||
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
|
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Add table
Reference in a new issue