From b0676cf351ccb48e7d2cf1d93d5728f3e834886a Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 6 Apr 2007 14:31:51 +0000 Subject: - Patch #134161 by chx: no menu tabs for themes. --- includes/theme.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'includes') diff --git a/includes/theme.inc b/includes/theme.inc index 762885f86..6e2a69c2e 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -199,13 +199,13 @@ function _theme_build_registry($theme, $theme_engine) { * An array of the currently available themes. */ function list_themes($refresh = FALSE) { - static $list; + static $list = array(); if ($refresh) { - unset($list); + $list = array(); } - if (!$list) { + if (empty($list)) { $list = array(); $result = db_query("SELECT * FROM {system} WHERE type = 'theme'"); while ($theme = db_fetch_object($result)) { -- cgit v1.2.3