Fix globals variable scope (#2262)

Some PHP installations won't recognize such as $db_type as a global variable if is inside a class. Using the super variable $GLOABALS makes sure the global variables are reached.
This commit is contained in:
Luis Daniel Lucio Quiroz 2016-12-26 16:54:16 -05:00 committed by FusionPBX
parent f414d866e5
commit 7eca3bd4e0
1 changed files with 1 additions and 1 deletions

View File

@ -672,7 +672,7 @@ include "root.php";
$sql .= "WHEN 'programmable' THEN 3 ";
$sql .= "WHEN 'expansion' THEN 4 ";
$sql .= "ELSE 100 END, ";
if ($db_type == "mysql") {
if ($GLOBALS['db_type'] == "mysql") {
$sql .= "device_key_id ASC, ";
}
else {