Skip to content
Snippets Groups Projects
Commit 855056ae authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #452 from greezybacon/issue/449


Don't send out SQL error on upgrade to 1.8.1

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents fdb09e19 a4d2f55c
No related branches found
No related tags found
No related merge requests found
......@@ -246,7 +246,7 @@ abstract class StaffAuthenticationBackend extends AuthenticationBackend {
$sql.= ' AND (username='.db_input($userid) .' OR email='.db_input($userid).')';
}
if (($res=db_query($sql)) && db_num_rows($res))
if (($res=db_query($sql, false)) && db_num_rows($res))
$backends[] = db_result($res);
return array_filter($backends);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment