Auth bug

From: Date: Sun, 10 Aug 2003 20:48:38 +0000
Subject: Auth bug
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-19529@lists.php.net to get a copy of this message
the getAuthData method of Auth class, raise a error if called without login before function getAuthData($name = null) { $session = &Auth::_importGlobalVariable("session"); if (is_null($name)) { return $session['auth']['data']; // // trigger a NOTICE if the user is not logged-in // solution: return isset($session['auth']['data']) ? $session['auth']['data'] : null; } if (isset($session['auth']['data'][$name])) { return $session['auth']['data'][$name]; } else { return null; } }

« previous php.pear.dev (#19529) next »