Re: Auth bug
| From: | Alan Knowles | Date: | Tue, 12 Aug 2003 08:52:19 +0000 |
| Subject: | Re: Auth bug | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-19554@lists.php.net to get a copy of this message | ||
can you file these as bugs on bugs.php.net under PEAR, otherwise they may be lost in the noise :)
Regards
Alan
Marcos Neves wrote:
the getAuthData method of Auth class, raise a error if called without login before-- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.comfunction getAuthData($name = null) { $session = &Auth::_importGlobalVariable("session");if (is_null($name)) { return $session['auth']['data']; // // trigger a NOTICE if theuser 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; } }