? includes/.theme.inc.swp
Index: includes/theme.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/theme.inc,v
retrieving revision 1.622
diff -u -p -r1.622 theme.inc
--- includes/theme.inc	30 Oct 2010 03:57:20 -0000	1.622
+++ includes/theme.inc	1 Nov 2010 20:34:43 -0000
@@ -737,6 +737,8 @@ function list_themes($refresh = FALSE) {
  */
 function theme($hook, $variables = array()) {
   static $hooks = NULL;
+  
+  if (!isset($variables)) return;
 
   // If called before all modules are loaded, we do not necessarily have a full
   // theme registry to work with, and therefore cannot process the theme
