summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-11-30 16:10:28 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-11-30 16:10:28 +0000
commit947251bc8336fab00895a5dd10b08227bb459238 (patch)
treefaa36c865e6dae71efbeda086468bb12f39bdb59 /includes
parente2479f239bea509113970c0568b04db712d6bfbe (diff)
downloadbrdo-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')
-rw-r--r--includes/theme.inc2
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)) {