|
@@ -52,6 +52,7 @@ function GetParentFolder( $folderPath )
|
|
|
|
|
|
function CreateServerFolder( $folderPath )
|
|
function CreateServerFolder( $folderPath )
|
|
{
|
|
{
|
|
|
|
+ $php_errormsg = '';
|
|
$sParent = GetParentFolder( $folderPath ) ;
|
|
$sParent = GetParentFolder( $folderPath ) ;
|
|
|
|
|
|
// Check if the parent exists, or create it.
|
|
// Check if the parent exists, or create it.
|
|
@@ -76,7 +77,7 @@ function CreateServerFolder( $folderPath )
|
|
mkdir( $folderPath, $perm ) ;
|
|
mkdir( $folderPath, $perm ) ;
|
|
umask( $oldumask ) ;
|
|
umask( $oldumask ) ;
|
|
|
|
|
|
- $sErrorMsg = $php_errormsg ;
|
|
|
|
|
|
+ $sErrorMsg = $php_errormsg ; //php_errormsg is filled by the result of a @'d operation
|
|
|
|
|
|
// Restore the configurations.
|
|
// Restore the configurations.
|
|
ini_restore( 'track_errors' ) ;
|
|
ini_restore( 'track_errors' ) ;
|