If the extension or dialplan xml directories are disabled or don't exist don't add sub directories.

This commit is contained in:
Mark Crane
2012-07-08 11:26:37 +00:00
parent e44426ee1a
commit f2db211c44
4 changed files with 26 additions and 16 deletions

View File

@@ -25,6 +25,8 @@
*/
//if the extensions dir doesn't exist then create it
if (!is_dir($_SESSION['switch']['extensions']['dir'])) { mkdir($_SESSION['switch']['extensions']['dir'],0777,true); }
if (strlen($_SESSION['switch']['extensions']['dir']) > 0) {
if (!is_dir($_SESSION['switch']['extensions']['dir'])) { mkdir($_SESSION['switch']['extensions']['dir'],0777,true); }
}
?>