From: moodler Date: Mon, 9 Aug 2004 14:18:40 +0000 (+0000) Subject: More notices X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7dd826818ec6c33ff88c1765edf4d53372185607;p=moodle.git More notices --- 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; }