Skip to content
Snippets Groups Projects
Commit 2e82683a authored by Jared Hancock's avatar Jared Hancock
Browse files

php: Fix global variable clobber issue

Some versions of PHP (5.3.6 on Windows at least) may corrupt `$ost` if it is
closed off as a global variable.

Fixes #917, #969
parent 7804ec66
Branches
Tags
No related merge requests found
......@@ -2218,7 +2218,8 @@ class Ticket {
};
};
$reject_ticket = function($message) use (&$errors, $ost) {
$reject_ticket = function($message) use (&$errors) {
global $ost;
$errors = array(
'errno' => 403,
'err' => 'This help desk is for use by authorized users only');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment