diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-10-22 15:14:46 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-10-22 15:14:46 +0000 |
commit | f6764cfbd8dcdedd05263711a41fcedb72dda2ab (patch) | |
tree | 88f659fea364fc50d3173da0c5a8bdbc28be8557 /modules/system.module | |
parent | 07ecb2abb0206484a77acbf5ba767af856d99520 (diff) | |
download | brdo-f6764cfbd8dcdedd05263711a41fcedb72dda2ab.tar.gz brdo-f6764cfbd8dcdedd05263711a41fcedb72dda2ab.tar.bz2 |
- Patch #30930 by m3avrck/deekayen: cured PHP5 warnings.
Diffstat (limited to 'modules/system.module')
-rw-r--r-- | modules/system.module | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/system.module b/modules/system.module index b1b3acffa..d41f67fa9 100644 --- a/modules/system.module +++ b/modules/system.module @@ -525,7 +525,7 @@ function system_theme_data() { foreach ($themes as $theme) { foreach (file_scan_directory(dirname($theme->filename), 'style.css$') as $style) { $style->style = TRUE; - $style->template = $theme->template; + $style->template = isset($theme->template) ? $theme->template : FALSE; $style->name = basename(dirname($style->filename)); $style->owner = $theme->filename; $style->prefix = $theme->template ? $theme->prefix : $theme->name; @@ -560,7 +560,7 @@ function system_theme_data() { function system_region_list($theme_key) { static $list = array(); - if(!array_key_exists($theme_key, $list)) { + if (!array_key_exists($theme_key, $list)) { $result = db_query("SELECT * FROM {system} WHERE type = 'theme' AND name = '%s'", $theme_key); $theme = db_fetch_object($result); @@ -705,7 +705,8 @@ function system_settings_form_execute($form_id, $values) { } if ($op == t('Reset to defaults')) { drupal_set_message(t('The configuration options have been reset to their default values.')); - } else { + } + else { drupal_set_message(t('The configuration options have been saved.')); } } |