mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Use is_dir instead of check for the length of the stirng.
This commit is contained in:
@@ -99,7 +99,7 @@ class scripts {
|
||||
* Writes the config.lua
|
||||
*/
|
||||
public function write_config() {
|
||||
if (strlen($_SESSION['switch']['scripts']['dir']) > 0) {
|
||||
if (is_dir($_SESSION['switch']['scripts']['dir'])) {
|
||||
|
||||
//define the global variables
|
||||
global $db;
|
||||
|
||||
Reference in New Issue
Block a user