Set the $db as a global variable in the class.
This commit is contained in:
parent
515d069f0e
commit
3fc3e0114b
|
|
@ -102,6 +102,7 @@ class scripts {
|
|||
if (strlen($_SESSION['switch']['scripts']['dir']) > 0) {
|
||||
|
||||
//define the global variables
|
||||
global $db;
|
||||
global $db_type;
|
||||
global $db_name;
|
||||
global $db_host;
|
||||
|
|
|
|||
Loading…
Reference in New Issue