summaryrefslogtreecommitdiff
path: root/includes/theme.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/theme.inc')
-rw-r--r--includes/theme.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index 339ec3512..494ee78b2 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -46,7 +46,7 @@ function init_theme() {
** list of enabled themes.
*/
- $theme = $themes[$user->theme] ? $user->theme : variable_get("theme_default", 0);
+ $theme = $user->theme && $themes[$user->theme] ? $user->theme : variable_get("theme_default", 0);
include_once($themes[$theme]->filename);
@@ -519,6 +519,8 @@ function theme_blocks($region) {
/* @} */
function _theme_table_cell($cell, $header = 0) {
+ $attributes = '';
+
if (is_array($cell)) {
$data = $cell['data'];
foreach ($cell as $key => $value) {