Update scripts.php
This commit is contained in:
parent
289861272e
commit
e75b3b65a7
|
|
@ -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')){
|
||||
|
|
|
|||
Loading…
Reference in New Issue