diff --git a/modules/system.module b/modules/system.module
index 8792336960f28be0eaddf99ab8112dbbbe59b7f7..9e0939b25cc2af1316f806b483e2f5fb261ccc00 100644
--- a/modules/system.module
+++ b/modules/system.module
@@ -131,9 +131,11 @@ function system_menu($may_cache) {
       'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -1);
 
     foreach (list_themes() as $theme) {
-       $items[] = array('path' => 'admin/themes/settings/'. $theme->name, 'title' => $theme->name,
-       'callback' => 'system_theme_settings', 'callback arguments' => array($theme->name), 'access' => $access,
-       'type' => MENU_LOCAL_TASK);
+      if ($theme->status) {
+        $items[] = array('path' => 'admin/themes/settings/'. $theme->name, 'title' => $theme->name,
+        'callback' => 'system_theme_settings', 'callback arguments' => array($theme->name), 'access' => $access,
+        'type' => MENU_LOCAL_TASK);
+      }
     }
 
     // Modules:
diff --git a/modules/system/system.module b/modules/system/system.module
index 8792336960f28be0eaddf99ab8112dbbbe59b7f7..9e0939b25cc2af1316f806b483e2f5fb261ccc00 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -131,9 +131,11 @@ function system_menu($may_cache) {
       'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -1);
 
     foreach (list_themes() as $theme) {
-       $items[] = array('path' => 'admin/themes/settings/'. $theme->name, 'title' => $theme->name,
-       'callback' => 'system_theme_settings', 'callback arguments' => array($theme->name), 'access' => $access,
-       'type' => MENU_LOCAL_TASK);
+      if ($theme->status) {
+        $items[] = array('path' => 'admin/themes/settings/'. $theme->name, 'title' => $theme->name,
+        'callback' => 'system_theme_settings', 'callback arguments' => array($theme->name), 'access' => $access,
+        'type' => MENU_LOCAL_TASK);
+      }
     }
 
     // Modules: