Index: autotimezone.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/autotimezone/autotimezone.module,v
retrieving revision 1.6.2.1
diff -u -r1.6.2.1 autotimezone.module
--- autotimezone.module	13 Jul 2006 18:50:26 -0000	1.6.2.1
+++ autotimezone.module	13 Nov 2006 04:53:31 -0000
@@ -32,8 +32,8 @@
   else {
     //This codeblock adds javascript to the page header.
     if (!function_exists('throttle_status') || !throttle_status()) { //Don't do anything if the throttle is active.
+      global $user;
       if ($user->uid != 0 or variable_get('autotimezone_update_guest', 0)) { //If the user is a guest, only continue if guest checking is on.
-        global $user;
         //We need to check if the user is a guest and then use the guest session variable.
         if ($user->uid == 0) {
           if (!$_SESSION['timezone']) {
@@ -90,4 +90,4 @@
     watchdog('user', t('%username had timezone updated from %old to %new.', array('%username' => $user->name, '%old' => $user->timezone / 3600, '%new' => $offset / 3600)));
     user_save($user, array('timezone' => $offset));
   }
-}
\ No newline at end of file
+}
