From: Alan Knowles Date: Thu, 23 Jun 2011 04:47:04 +0000 (+0800) Subject: MTrackWeb.php X-Git-Url: http://git.roojs.org/?p=web.mtrack;a=commitdiff_plain;h=c3041df09ee91f754e87042091df04bdc28f5843 MTrackWeb.php --- diff --git a/MTrackWeb.php b/MTrackWeb.php index 5e534b07..59fcde4f 100644 --- a/MTrackWeb.php +++ b/MTrackWeb.php @@ -90,10 +90,11 @@ class MTrackWeb extends HTML_FlexyFramework_Page if ($val !== false) { // attempt to set it.. $_SESSION[__CLASS__]['active_project_id'] = $val ; - $currentProject = false; + $currentProject = $val ; // reset to ensure not cached.. } $ar = $this->userProjects(); + print_r($ar); if (!isset($ar[$currentProject])) { $currentProject = false; $_SESSION[__CLASS__]['active_project_id'] = false; @@ -101,8 +102,6 @@ class MTrackWeb extends HTML_FlexyFramework_Page if ($currentProject !== false) { return $currentProject; } - - //print_r($ar);