View Single Post
Old August 30th, 2007, 11:16 AM   #1 (permalink)
Luciano
Moderator
Verified Customer
 
Join Date: Aug 2005
Posts: 1,231
ip in postbit is wrong [added 2.4]

Just stumbled into a bug..
in the posts..(comments) when i check the ip of the poster.. it is sometimes empty...

i checked the code.. and the $postid parameter is missing...
the code says:
if($imageid)....
else
(it uses $postid) but the parameter is p=... in the url..

so if $imageid is defined.. it gives the ip of the imageposter.. else the ip is empty..


so as a fix i did following:
in moderate.php find:
Code:
Content visible to verified customers only.
and below add:
Code:
Content visible to verified customers only.
it seems to work now...

Luc

Last edited by Luciano; August 30th, 2007 at 11:38 AM.
Luciano is offline