Ticket #431: fck-php-connector.diff

File fck-php-connector.diff, 1.1 KB (added by Denis de Bernardy, 17 years ago)
  • commands.php

     
    3030        // Array that will hold the folders names.
    3131        $aFolders       = array() ;
    3232
    33         $oCurrentFolder = opendir( $sServerDir ) ;
     33        $oCurrentFolder = @opendir( $sServerDir ) ;
    3434
    35         while ( $sFile = readdir( $oCurrentFolder ) )
     35        while ( $sFile = @readdir( $oCurrentFolder ) )
    3636        {
    37                 if ( $sFile != '.' && $sFile != '..' && is_dir( $sServerDir . $sFile ) )
     37                if ( $sFile != '.' && $sFile != '..' && @is_dir( $sServerDir . $sFile ) )
    3838                        $aFolders[] = '<Folder name="' . ConvertToXmlAttribute( $sFile ) . '" />' ;
    3939        }
    4040
    41         closedir( $oCurrentFolder ) ;
     41        @closedir( $oCurrentFolder ) ;
    4242
    4343        // Open the "Folders" node.
    4444        echo "<Folders>" ;
     
    6060        $aFolders       = array() ;
    6161        $aFiles         = array() ;
    6262
    63         $oCurrentFolder = opendir( $sServerDir ) ;
     63        $oCurrentFolder = @opendir( $sServerDir ) ;
    6464
    65         while ( $sFile = readdir( $oCurrentFolder ) )
     65        while ( $sFile = @readdir( $oCurrentFolder ) )
    6666        {
    6767                if ( $sFile != '.' && $sFile != '..' )
    6868                {
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy