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