|
From: Bart v. B. <ba...@us...> - 2001-12-18 21:28:25
|
Update of /cvsroot/phpbb/phpBB2
In directory usw-pr-cvs1:/tmp/cvs-serv25069
Modified Files:
modcp.php
Log Message:
Added check if post exist for IP check
Index: modcp.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/modcp.php,v
retrieving revision 1.50
retrieving revision 1.51
diff -C2 -r1.50 -r1.51
*** modcp.php 2001/12/11 02:21:51 1.50
--- modcp.php 2001/12/18 21:28:21 1.51
***************
*** 936,939 ****
--- 936,944 ----
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);
***************
*** 1170,1172 ****
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
! ?>
\ No newline at end of file
--- 1175,1177 ----
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
! ?>
|