Fixing Issue 89

master
Nathan Adams 2014-12-28 20:54:24 -06:00
parent b8c7f906eb
commit fe4e7266fd
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ class IDF_Views_User
public function view($request, $match)
{
$db =& Pluf::db();
$sql = new Pluf_SQL('login=%s', array($match[1]));
$sql = new Pluf_SQL('login=%s or email=%s', array($match[1], $match[1]));
$users = Pluf::factory('Pluf_User')->getList(array('filter'=>$sql->gen()));
if (count($users) != 1 or !$users[0]->active) {
throw new Pluf_HTTP_Error404();