Auth::getAuthData() patch
| From: | Javier Conti | Date: | Fri, 01 Nov 2002 10:03:46 +0000 |
| Subject: | Auth::getAuthData() patch | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-10411@lists.php.net to get a copy of this message | ||
Hi, I fixed a probable typo in Auth::getAuthData() which prevents it
from returning any meaningful data.
Btw, if there is a place to look for open bugs or fixed ones, please let
me know since a didn't find it on the pear website.
Javier
--- Auth.php 2002-11-01 10:51:02.000000000 +0100 +++ Auth.new 2002-11-01 10:50:56.000000000 +0100 @@ -521,8 +521,8 @@ { $session = &Auth::_importGlobalVariable("session"); - if (isset($session['auth']['data'])) { - return $session['auth']['data']; + if (isset($session['auth'][$data])) { + return $session['auth'][$data]; } else { return null; }
--- Auth.php 2002-11-01 10:51:02.000000000 +0100 +++ Auth.new 2002-11-01 10:50:56.000000000 +0100 @@ -521,8 +521,8 @@ { $session = &Auth::_importGlobalVariable("session"); - if (isset($session['auth']['data'])) { - return $session['auth']['data']; + if (isset($session['auth'][$data])) { + return $session['auth'][$data]; } else { return null; }