Set the $db as a global variable in the class.

This commit is contained in:
markjcrane
2015-12-20 22:54:08 -07:00
parent dd9e225fa5
commit 2c2d49a4d4

View File

@@ -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;