From: moodler Date: Sun, 8 Aug 2004 03:35:46 +0000 (+0000) Subject: FIxing a notice for PHP5 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e17781c874d115db77b6660d0efae9e57e23ade2;p=moodle.git FIxing a notice for PHP5 --- diff --git a/index.php b/index.php index 2d8398274c..80fdc6f0c5 100644 --- a/index.php +++ b/index.php @@ -116,7 +116,7 @@ } // If the block width cache is not set, set it - if(!isset($SESSION->blockcache->width->{$site->id}) || $editing) { + if(!isset($SESSION) 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');