diff options
Diffstat (limited to 'phpBB/modcp.php')
-rw-r--r-- | phpBB/modcp.php | 7 |
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 +?> |