From 4fa0649eba9c0e5ed5260a347c8a80c3b020cc33 Mon Sep 17 00:00:00 2001 From: markjcrane Date: Sun, 27 Mar 2016 00:33:19 -0600 Subject: [PATCH] Only call the scripts class if its installed. --- resources/classes/domains.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/classes/domains.php b/resources/classes/domains.php index df3e433c34..c76174a49d 100644 --- a/resources/classes/domains.php +++ b/resources/classes/domains.php @@ -332,8 +332,10 @@ } //update config.lua - $obj = new scripts; - $obj->write_config(); + if (file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/app/scripts/resources/classes/scripts.php')) { + $obj = new scripts; + $obj->write_config(); + } //clear the session variables unset($_SESSION['domain']);