Minahito
minah****@users*****
2006年 1月 17日 (火) 19:28:15 JST
Index: xoops2jp/html/kernel/member.php diff -u xoops2jp/html/kernel/member.php:1.2.8.5 xoops2jp/html/kernel/member.php:1.2.8.6 --- xoops2jp/html/kernel/member.php:1.2.8.5 Sun Dec 25 19:52:36 2005 +++ xoops2jp/html/kernel/member.php Tue Jan 17 19:28:15 2006 @@ -1,5 +1,5 @@ <?php -// $Id: member.php,v 1.2.8.5 2005/12/25 10:52:36 minahito Exp $ +// $Id: member.php,v 1.2.8.6 2006/01/17 10:28:15 minahito Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -126,18 +126,17 @@ return $this->_members[$id]; } - function getUserByEmail($emailAddress) + function &getUserByEmail($email) { - $returnUser; + $returnUser = null; $myts =& MyTextSanitizer::getInstance(); ///< @todo not depends - $memberHandler=&xoops_gethandler('member'); - $users=&$memberHandler->getUsers(new Criteria('email'),$myts->addSlashes($email)); + $users =& $this->getUsers(new Criteria('email'), $myts->addSlashes($email)); if(!is_array($users)) { $returnUser=null; } - else { + else if(count($users) > 0) { $returnUser = is_object($users[0]) ? $users[0] : null; }