From a4d2f55c0a5ce23ace5e79f1afca71a07dde3dc7 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Wed, 22 Jan 2014 12:36:22 -0600 Subject: [PATCH] Don't send out SQL error on upgrade to 1.8.1 --- include/class.auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/class.auth.php b/include/class.auth.php index cca04f1df..b88201b77 100644 --- a/include/class.auth.php +++ b/include/class.auth.php @@ -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); -- GitLab