From e75b3b65a7e84c2d8a06f882e5d2d51e0268f53a Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 9 Feb 2017 00:19:55 -0700 Subject: [PATCH] Update scripts.php --- app/scripts/resources/classes/scripts.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/scripts/resources/classes/scripts.php b/app/scripts/resources/classes/scripts.php index feccafb3a2..a4bd956e17 100644 --- a/app/scripts/resources/classes/scripts.php +++ b/app/scripts/resources/classes/scripts.php @@ -95,9 +95,6 @@ if (!class_exists('scripts')) { public function copy_files() { if (is_array($_SESSION['switch']['scripts'])) { $dst_dir = $_SESSION['switch']['scripts']['dir']; - if(strlen($dst_dir) == 0) { - throw new Exception("Cannot copy scripts the 'script_dir' is empty"); - } if (file_exists($dst_dir)) { //get the source directory if (file_exists('/usr/share/examples/fusionpbx/scripts')){