diff options
author | Andrew Dolgov <[email protected]> | 2010-01-28 18:54:45 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-01-28 18:54:45 +0300 |
commit | b92fbcd8a52ef26a1700e0194e6a7a2ccb733b7d (patch) | |
tree | ddb5a53087ea337ac379447b296dd52dff9b1002 /functions.php | |
parent | a522a76734328818dd9d863a424a609d56728df6 (diff) |
only check for themes when there is a logged-in user
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/functions.php b/functions.php index ec0f484ad..86712f01b 100644 --- a/functions.php +++ b/functions.php @@ -2047,7 +2047,7 @@ function get_user_theme($link) { - if (get_schema_version($link) >= 63) { + if (get_schema_version($link) >= 63 && $_SESSION["uid"]) { $theme_name = get_pref($link, "_THEME_ID"); if (is_dir("themes/$theme_name")) { return $theme_name; @@ -2062,7 +2062,7 @@ function get_user_theme_path($link) { - if (get_schema_version($link) >= 63) { + if (get_schema_version($link) >= 63 && $_SESSION["uid"]) { $theme_name = get_pref($link, "_THEME_ID"); if ($theme_name && is_dir("themes/$theme_name")) { |