srchub

srchub Commit Details


Date:2014-12-28 20:54:24 (10 years 2 months ago)
Author:Natalie Adams
Branch:master
Commit:fe4e7266fd64b4c0d11e2eb8df69307ea5ceffbd
Parents: b8c7f906eb9cdd7fef2dafe8f2dce73dc26fb0fd
Message:Fixing Issue 89

Changes:

File differences

indefero/src/IDF/Views/User.php
277277
278278
279279
280
280
281281
282282
283283
    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();

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.12253s using 20 queries.