aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorBart van Bragt <bartvb@users.sourceforge.net>2001-12-18 21:28:21 +0000
committerBart van Bragt <bartvb@users.sourceforge.net>2001-12-18 21:28:21 +0000
commit3d33692557b8092ed3df34559b25d688638901c5 (patch)
treef595101df6336bbf8e3c8bde6ab23c7093a1554d /phpBB
parent8575c191a29a59b4b9d2aea63a1dbe75c79c2496 (diff)
downloadforums-3d33692557b8092ed3df34559b25d688638901c5.tar
forums-3d33692557b8092ed3df34559b25d688638901c5.tar.gz
forums-3d33692557b8092ed3df34559b25d688638901c5.tar.bz2
forums-3d33692557b8092ed3df34559b25d688638901c5.tar.xz
forums-3d33692557b8092ed3df34559b25d688638901c5.zip
Added check if post exist for IP check
git-svn-id: file:///svn/phpbb/trunk@1631 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/modcp.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/modcp.php b/phpBB/modcp.php
index 8ea50ae0a8..fe180e2c62 100644
--- a/phpBB/modcp.php
+++ b/phpBB/modcp.php
@@ -935,6 +935,11 @@ switch($mode)
{
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);
@@ -1169,4 +1174,4 @@ switch($mode)
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
-?> \ No newline at end of file
+?>