From 7dd826818ec6c33ff88c1765edf4d53372185607 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 9 Aug 2004 14:18:40 +0000 Subject: [PATCH] More notices --- index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index 80fdc6f0c5..af08858d5e 100644 --- a/index.php +++ b/index.php @@ -116,7 +116,8 @@ } // If the block width cache is not set, set it - if(!isset($SESSION) or !isset($SESSION->blockcache->width->{$site->id}) or $editing) { + if(!isset($SESSION) or !isset($SESSION->blockcache) or + !isset($SESSION->blockcache->width->{$site->id}) or $editing) { // This query might be optimized away if we 're in editing mode if(!isset($recblocks)) { $recblocks = get_records('blocks','visible','1'); @@ -128,8 +129,7 @@ // But is there any real need to simplify the structure? $SESSION->blockcache->width->{$site->id}->left = $preferred_width_left; $SESSION->blockcache->width->{$site->id}->right = $preferred_width_right; - } - else { + } else { $preferred_width_left = $SESSION->blockcache->width->{$site->id}->left; $preferred_width_right = $SESSION->blockcache->width->{$site->id}->right; } -- 2.39.5