Proyectos de Subversion LeadersLinked - Services

Rev

Rev 764 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 764 Rev 770
Línea 130... Línea 130...
130
            if($storageFile) {
130
            if($storageFile) {
Línea 131... Línea 131...
131
               
131
               
Línea -... Línea 132...
-
 
132
                
-
 
133
                if(file_exists($storageFile->path)) {
-
 
134
                    
-
 
135
                    // Check if the path is a directory instead of a file
-
 
136
                    if(is_dir($storageFile->path)) {
-
 
137
                        $this->logger->err('StorageFile path is a directory instead of a file: ' . $storageFile->path . ' (code: ' . $code . ')');
132
                
138
                        return $this->getResponse()->setStatusCode(500);
133
                if(file_exists($storageFile->path)) {
139
                    }
134
                    
140
                    
135
                    // Try to open file
141
                    // Try to open file