Index: trunk/phase3/includes/filerepo/backend/FSFileBackend.php |
— | — | @@ -48,10 +48,13 @@ |
49 | 49 | $this->basePath = null; // none; containers must have explicit paths |
50 | 50 | } |
51 | 51 | |
52 | | - $this->containerPaths = (array)$config['containerPaths']; |
53 | | - foreach ( $this->containerPaths as &$path ) { |
54 | | - rtrim( $path, '/' ); // remove trailing slash |
| 52 | + if( isset( $config['containerPaths'] ) ) { |
| 53 | + $this->containerPaths = (array)$config['containerPaths']; |
| 54 | + foreach ( $this->containerPaths as &$path ) { |
| 55 | + rtrim( $path, '/' ); // remove trailing slash |
| 56 | + } |
55 | 57 | } |
| 58 | + |
56 | 59 | $this->fileMode = isset( $config['fileMode'] ) |
57 | 60 | ? $config['fileMode'] |
58 | 61 | : 0644; |