Page 1 of 1

bug in memberlist.php

Posted: Mon Mar 21, 2011 11:00 am
by C.H.A.D.o
Support Request Template
What version of phpBB are you using? phpBB 3.0.8
How did you install your board? I used the download package from phpBB.com
Is your board a fresh install or a conversion? Fresh Install
Do you have any MODs installed? No
Is registration required to reproduce this issue? No
What styles do you currently have installed? any
What language(s) is your board currently using? en
Which database type/version are you using? MySQL 5
What is your level of experience? New to phpBB but not PHP
Also sorry for language and that I can`t find administrator in "Issue Tracker" to register, so posted here

in memberlist.php on line 1073:

Code: Select all

			$sql_where .= ($auth->acl_get('u_viewonline') && sizeof($active) > 1 && isset($find_key_match[$active_select])) ? " AND u.user_lastvisit " . $find_key_match[$active_select] . ' ' . gmmktime(0, 0, 0, $active[1], intval($active[2]), intval($active[0])) : '';
gave sql_error if last visit will be "2000-fe-21" (example)
I change to:

Code: Select all

			$sql_where .= ($auth->acl_get('u_viewonline') && sizeof($active) > 1 && isset($find_key_match[$active_select])) ? " AND u.user_lastvisit " . $find_key_match[$active_select] . ' ' . gmmktime(0, 0, 0, intval($active[1]), intval($active[2]), intval($active[0])) : '';
in function gmmktime() month are not integer, I add intval()

I make this and with your forum, but your forum has no error
Some others forum in internet gave error, sorry admins for test :roll:

Re: bug in memberlist.php

Posted: Mon Mar 21, 2011 12:08 pm
by AmigoJack
You use the same account data for the tracker as for this board. I opened one.