Index: admin_theme.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/admin_theme/admin_theme.module,v
retrieving revision 1.1.2.17
diff -u -p -r1.1.2.17 admin_theme.module
--- admin_theme.module	15 Aug 2009 08:18:46 -0000	1.1.2.17
+++ admin_theme.module	21 Aug 2009 09:13:22 -0000
@@ -136,8 +136,7 @@ function admin_theme_init() {
   
   // we should not show the admin theme if the user has no access or the path is in the disallow list
   if (!user_access('access admin theme') || $admin_theme_disallow) {
-    global $custom_theme;
-    unset($custom_theme);
+    unset($GLOBALS['custom_theme']);
     return;
   }
   
