[TASK] Superfluous comparison in OpendocsController 39/25739/2
authorWouter Wolters <typo3@wouterwolters.nl>
Thu, 28 Nov 2013 20:54:05 +0000 (21:54 +0100)
committerMarkus Klein <klein.t3@mfc-linz.at>
Tue, 17 Dec 2013 00:46:39 +0000 (01:46 +0100)
Fix superfluous comparison against boolean in
OpendocsController::checkAccess

Change-Id: I0682042848f2f25856506d5949fc724853c43948
Resolves: #54052
Releases: 6.2
Reviewed-on: https://review.typo3.org/25739
Reviewed-by: Jo Hasenau
Reviewed-by: Michiel Roos
Tested-by: Michiel Roos
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/sysext/opendocs/Classes/Controller/OpendocsController.php

index e5c437e..96ea2d5 100644 (file)
@@ -66,7 +66,7 @@ class OpendocsController implements \TYPO3\CMS\Backend\Toolbar\ToolbarItemHookIn
         */
        public function checkAccess() {
                $conf = $GLOBALS['BE_USER']->getTSConfig('backendToolbarItem.tx_opendocs.disabled');
-               return $conf['value'] == 1 ? FALSE : TRUE;
+               return $conf['value'] != 1;
        }
 
        /**