From ebfb0b459ae48d11409db20ccd7a4b8575b076a7 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Mon, 20 Jan 2014 18:16:48 -0600 Subject: [PATCH] lint: Fix usage of undeclared global var --- include/class.auth.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/class.auth.php b/include/class.auth.php index 400070ab4..cca04f1df 100644 --- a/include/class.auth.php +++ b/include/class.auth.php @@ -636,6 +636,8 @@ class PasswordResetTokenBackend extends StaffAuthenticationBackend { } function signOn($errors=array()) { + global $ost; + if (!isset($_POST['userid']) || !isset($_POST['token'])) return false; elseif (!($_config = new Config('pwreset'))) -- GitLab