From 1bfbbdb262c933b73332c0b12ba888a35d8266dd Mon Sep 17 00:00:00 2001 From: markjcrane Date: Sun, 3 Apr 2016 09:29:37 -0600 Subject: [PATCH] Only write the scripts if the directory is set. --- app/scripts/app_defaults.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/scripts/app_defaults.php b/app/scripts/app_defaults.php index 067d6667dd..31b4452610 100644 --- a/app/scripts/app_defaults.php +++ b/app/scripts/app_defaults.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2010 + Portions created by the Initial Developer are Copyright (C) 2008-2016 the Initial Developer. All Rights Reserved. Contributor(s): @@ -26,9 +26,11 @@ //process this only one time if ($domains_processed == 1) { - $obj = new scripts; - $obj->copy_files(); - $obj->write_config(); + if (isset($_SESSION['switch']['scripts']['dir'])) { + $obj = new scripts; + $obj->copy_files(); + $obj->write_config(); + } } ?> \ No newline at end of file