[BUGFIX] Installer triggers PHP warnings with folder structure tests 30/21930/2
authorMarkus Klein <klein.t3@mfc-linz.at>
Fri, 5 Jul 2013 13:17:59 +0000 (15:17 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Fri, 5 Jul 2013 13:59:31 +0000 (15:59 +0200)
Resolves: #49700
Releases: 6.2
Change-Id: I0e77811b733141a3e70a9dba0c203406bc0571a6
Reviewed-on: https://review.typo3.org/21930
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/install/Classes/FolderStructure/AbstractNode.php
typo3/sysext/install/Classes/FolderStructure/DirectoryNode.php

index 48dbaa9..8765166 100644 (file)
@@ -113,10 +113,10 @@ abstract class AbstractNode {
         * @return boolean
         */
        protected function exists() {
-               if (is_link($this->getAbsolutePath())) {
+               if (@is_link($this->getAbsolutePath())) {
                        return TRUE;
                } else {
-                       return file_exists($this->getAbsolutePath());
+                       return @file_exists($this->getAbsolutePath());
                }
        }
 
index 2154ef5..12109e4 100644 (file)
@@ -243,7 +243,7 @@ class DirectoryNode extends AbstractNode implements NodeInterface {
         */
        protected function isDirectory() {
                $path = $this->getAbsolutePath();
-               return (!is_link($path) && is_dir($path));
+               return (!@is_link($path) && @is_dir($path));
        }
 
        /**