diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-11-30 16:10:28 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-11-30 16:10:28 +0000 |
commit | 947251bc8336fab00895a5dd10b08227bb459238 (patch) | |
tree | faa36c865e6dae71efbeda086468bb12f39bdb59 /includes/theme.inc | |
parent | e2479f239bea509113970c0568b04db712d6bfbe (diff) | |
download | brdo-947251bc8336fab00895a5dd10b08227bb459238.tar.gz brdo-947251bc8336fab00895a5dd10b08227bb459238.tar.bz2 |
#141727 follow up by dvessel: handle developer edge case in theme handling when database is active, but tables are not there
Diffstat (limited to 'includes/theme.inc')
-rw-r--r-- | includes/theme.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/theme.inc b/includes/theme.inc index e0e10cafa..41eab6e3f 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -416,7 +416,7 @@ function list_themes($refresh = FALSE) { $list = array(); $themes = array(); // Extract from the database only when it is available. - if (db_is_active()) { + if (db_is_active() && db_table_exists('system')) { $result = db_query("SELECT * FROM {system} WHERE type = '%s'", 'theme'); while ($theme = db_fetch_object($result)) { if (file_exists($theme->filename)) { |