Module: nagvis Branch: master Commit: 4d708dd79886691f69856e319bb380373c62c831 URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=4d708dd79886691f69856e319bb380373c62c831
Author: Lars Michelsen <[email protected]> Date: Sun Oct 18 22:45:52 2009 +0200 #116 Fixed redirection for already logged in users --- .../nagvis-js/classes/CoreModLogonDialog.php | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/share/frontend/nagvis-js/classes/CoreModLogonDialog.php b/share/frontend/nagvis-js/classes/CoreModLogonDialog.php index 83658d5..8e0efba 100644 --- a/share/frontend/nagvis-js/classes/CoreModLogonDialog.php +++ b/share/frontend/nagvis-js/classes/CoreModLogonDialog.php @@ -24,7 +24,7 @@ class CoreModLogonDialog extends FrontendModule { switch($this->sAction) { case 'view': // Check if user is already authenticated - if(!$this->AUTHENTICATION->isAuthenticated()) { + if(!isset($this->AUTHENTICATION) || !$this->AUTHENTICATION->isAuthenticated()) { $sReturn = $this->displayDialog(); } else { // When the user is already authenticated redirect to start page (overview) @@ -33,7 +33,7 @@ class CoreModLogonDialog extends FrontendModule { break; case 'login': // Check if user is already authenticated - if(!$this->AUTHENTICATION->isAuthenticated()) { + if(!isset($this->AUTHENTICATION) || !$this->AUTHENTICATION->isAuthenticated()) { $aReturn = $this->handleResponse(); $AUTH = new FrontendModAuth($this->CORE); ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
