summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/system.module11
1 files changed, 10 insertions, 1 deletions
diff --git a/modules/system/system.module b/modules/system/system.module
index 5508f868d..a2ec2f332 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -113,7 +113,16 @@ function system_menu() {
*/
function system_user($type, $edit, &$user, $category = NULL) {
if ($type == 'form' && $category == 'account') {
- if (count($themes = list_themes()) > 1) {
+ $allthemes = list_themes();
+
+ // list only active themes
+ foreach ($allthemes as $key => $theme) {
+ if ($theme->status) {
+ $themes[$key] = $theme;
+ }
+ }
+
+ if (count($themes) > 1) {
$rows = array();
foreach ($themes as $key => $value) {
$row = array();