# HG changeset patch # User Nathan Phillip Brink # Date 2010-10-11 10:58:07 # Node ID 4f47ac8570ac81bbac957835d5ea59a24eb05f45 # Parent eb70a5d98c421b6514a470ac756f2b09b1fc5ac7 Only access $this->school after first loading the school profile. diff --git a/inc/class.page.php b/inc/class.page.php --- a/inc/class.page.php +++ b/inc/class.page.php @@ -91,14 +91,14 @@ class page . " \n"; } - self::session_start(); + self::session_start(); + /* everything that needs sessions started to work: */ + + $this->school = school_load_guess(); + if($immediate && $ntitle != "NOHEAD") $this->head(); - - /* everything that needs sessions started to work: */ - - $this->school = school_load_guess(); } /**