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