Bug tracker

This ticket has been moved to our new tracker. Open Ticket PHPBB3-1435 now.

Undefined Variable: time (fix completed in vcs)

This error occured after I updated to the latest version of CVS. Anyway, when viewing a post, the phpBB Debug error is that there is an undefined variable ($time) on line 1085 of viewtopic.php. I dont know why there is even a variable for time because by default, the second argument of the date function is the current time. So by just removing ", $time" from the date function, this bug goes away.

I'm sorry if this has been posted before, but I did check this time.

Comments / History

Posted by Dr.Death (QA Team) on Aug 7th 2006, 06:26

confirmed.

But don't remove the var $time .

Insert 1 line before 1085:

Code: Select all
$time = time() + $user->timezone + $user->dst;

Posted by Acyd Burn (Server Manager) on Aug 7th 2006, 10:53

already fixed locally

Posted by Acyd Burn (Server Manager) on Aug 9th 2006, 21:12

Nils, for you to check too. I only changed $time to time(). Wink

Posted by naderman (Development Team Leader) on Aug 10th 2006, 10:21

That line wasn't supposed to be there anyway Wink

I copied that part from memberlist.php and forgot to remove it.

Linked ticket with changeset: r6257

Action performed by naderman (Development Team Leader) on Aug 10th 2006, 13:33

Ticket details

Related SVN changesets