[BUGFIX] ResourceStorage: Bad comparison for strings
authorAndreas Wolf <andreas.wolf@typo3.org>
Mon, 8 Oct 2012 14:32:34 +0000 (16:32 +0200)
committerOliver Hader <oliver.hader@typo3.org>
Wed, 10 Oct 2012 10:16:49 +0000 (12:16 +0200)
Resolves: #41719
Releases: 6.0
Change-Id: Idf333f303da4d3f2a26549eaf3ea28a149dbb2ee
Reviewed-on: http://review.typo3.org/15400
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
typo3/sysext/core/Classes/Resource/ResourceStorage.php

index 1656c6a..532bfa4 100644 (file)
@@ -573,7 +573,7 @@ class ResourceStorage {
                        return FALSE;
                }
                $isReadCheck = FALSE;
-               if (in_array($action, array('read'))) {
+               if ($action === 'read') {
                        $isReadCheck = TRUE;
                }
                $isWriteCheck = FALSE;
@@ -619,7 +619,7 @@ class ResourceStorage {
                        return FALSE;
                }
                $isReadCheck = FALSE;
-               if (in_array($action, array('read'))) {
+               if ($action === 'read') {
                        $isReadCheck = TRUE;
                }
                $isWriteCheck = FALSE;
@@ -1962,8 +1962,6 @@ class ResourceStorage {
                }
                return $this->processingFolder;
        }
-
 }
 
-
-?>
+?>
\ No newline at end of file