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:
parent
f414d866e5
commit
7eca3bd4e0
|
|
@ -672,7 +672,7 @@ include "root.php";
|
||||||
$sql .= "WHEN 'programmable' THEN 3 ";
|
$sql .= "WHEN 'programmable' THEN 3 ";
|
||||||
$sql .= "WHEN 'expansion' THEN 4 ";
|
$sql .= "WHEN 'expansion' THEN 4 ";
|
||||||
$sql .= "ELSE 100 END, ";
|
$sql .= "ELSE 100 END, ";
|
||||||
if ($db_type == "mysql") {
|
if ($GLOBALS['db_type'] == "mysql") {
|
||||||
$sql .= "device_key_id ASC, ";
|
$sql .= "device_key_id ASC, ";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue