MTrackWeb.php
authorAlan Knowles <alan@akbkhome.com>
Thu, 24 Mar 2011 11:36:17 +0000 (19:36 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 24 Mar 2011 11:36:17 +0000 (19:36 +0800)
MTrackWeb.php

index f189564..4e96856 100644 (file)
@@ -79,6 +79,9 @@ class MTrackWeb extends HTML_FlexyFramework_Page
     {
         // we do need the option for me to look at all projects...
         static $currentProject = false;
+        if (empty($_SESSION[__CLASS__])) {
+            $_SESSION[__CLASS__] = array();
+        }
         if ($val !== false) {
             // attempt to set it..
             $_SESSION[__CLASS__]['active_project_id'] = $val ;