]> git.mjollnir.org Git - moodle.git/commitdiff
FIxing a notice for PHP5
authormoodler <moodler>
Sun, 8 Aug 2004 03:35:46 +0000 (03:35 +0000)
committermoodler <moodler>
Sun, 8 Aug 2004 03:35:46 +0000 (03:35 +0000)
index.php

index 2d8398274cf7c709f186f1849ca5daa5e967e654..80fdc6f0c5790527b1a633033c2f961ac94561cf 100644 (file)
--- a/index.php
+++ b/index.php
     }
 
     // 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');