From 3fc3e0114b2eacf1eb16fb01bee0601179bf89be Mon Sep 17 00:00:00 2001 From: markjcrane Date: Sun, 20 Dec 2015 22:54:08 -0700 Subject: [PATCH] Set the $db as a global variable in the class. --- app/scripts/resources/classes/scripts.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/scripts/resources/classes/scripts.php b/app/scripts/resources/classes/scripts.php index 47cc91ff54..c07bde2950 100644 --- a/app/scripts/resources/classes/scripts.php +++ b/app/scripts/resources/classes/scripts.php @@ -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;