Commit 947251bc authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#141727 follow up by dvessel: handle developer edge case in theme handling...

#141727 follow up by dvessel: handle developer edge case in theme handling when database is active, but tables are not there
parent e2479f23
......@@ -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)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment