From 85e6cd7c2f61f0bff5819d33542deecd44c14b1a Mon Sep 17 00:00:00 2001
From: Dane Powell <git@danepowell.com>
Date: Sun, 17 Apr 2011 13:26:02 -0700
Subject: [PATCH] Fixed _system_theme_data() causing PHP notice

---
 skinr.module |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/skinr.module b/skinr.module
index 408cc5c..366f40c 100644
--- a/skinr.module
+++ b/skinr.module
@@ -306,8 +306,12 @@ function skinr_preprocess(&$vars, $hook) {
   $current_theme = skinr_current_theme();
   $theme_registry = theme_get_registry();
 
+  $themes = array();
   // Add any base themes.
-  $themes = array_keys(system_find_base_themes(_system_theme_data(), $current_theme));
+  $system_theme_data = _system_theme_data();
+  if (isset($system_theme_data[$current_theme]->info['base theme'])) {
+    $themes = array_keys(system_find_base_themes($system_theme_data, $current_theme));
+  }
   // Add the current theme.
   $themes[] = $current_theme;
 
-- 
1.7.4.msysgit.0

