diff --git a/build/ifmlib.php b/build/ifmlib.php index daf1659..a3bff6f 100644 --- a/build/ifmlib.php +++ b/build/ifmlib.php @@ -1751,7 +1751,7 @@ function IFM( params ) { // creates a directory private function createDir($w, $dn) { - if( $this->config['createDir'] != 1 ) { + if( $this->config['createdir'] != 1 ) { echo json_encode( array( "status" => "ERROR", "message" => "No permission to create directories.") ); exit( 1 ); } diff --git a/ifm.php b/ifm.php index 901b55e..c8144a1 100644 --- a/ifm.php +++ b/ifm.php @@ -1751,7 +1751,7 @@ function IFM( params ) { // creates a directory private function createDir($w, $dn) { - if( $this->config['createDir'] != 1 ) { + if( $this->config['createdir'] != 1 ) { echo json_encode( array( "status" => "ERROR", "message" => "No permission to create directories.") ); exit( 1 ); } diff --git a/src/main.php b/src/main.php index 518f1fa..b83c693 100644 --- a/src/main.php +++ b/src/main.php @@ -307,7 +307,7 @@ class IFM { // creates a directory private function createDir($w, $dn) { - if( $this->config['createDir'] != 1 ) { + if( $this->config['createdir'] != 1 ) { echo json_encode( array( "status" => "ERROR", "message" => "No permission to create directories.") ); exit( 1 ); }