global $user declared one line below first use

scott.mclewin - November 30, 2006 - 19:28
Project:Auto Time Zone
Version:4.7.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Darren Oh
Status:closed
Description

This is a simple patch - the global $user; declaration is below a conditional that tests a value within $user. I don't know that it is causing any actual problems, it came up when I was moving to php5.1 with a higher warning level set as using an undeclared variable. It looks wrong, so I patched it.

AttachmentSize
autotimezone.module.patch1.19 KB

#1

Darren Oh - December 1, 2006 - 23:33
Priority:normal» critical
Status:active» reviewed & tested by the community

Without this patch my time zone is not set.

#2

LukeLast - December 2, 2006 - 12:52

I can commit to CVS in a couple of weeks unless someone else wants to.

#3

Darren Oh - December 3, 2006 - 00:44

As far as I can tell, Moshe Weitzman (who is a very busy man) is the only other person with CVS commit access for this project. I would be happy to commit this if you give me commit access.

#4

LukeLast - December 3, 2006 - 14:00

Access granted.

I never noticed the new CVS access system before.

#5

Darren Oh - December 3, 2006 - 17:39
Assigned to:Anonymous» Darren Oh
Status:reviewed & tested by the community» fixed

Fixed in CVS commit 47009.

#6

scott.mclewin - December 3, 2006 - 21:38

Thanks for the quick turnaround. Perhaps I should make all of my patches one line at a time. :)

#7

Anonymous - December 17, 2006 - 21:45
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.