[TASK] Remove non existing param from checkForUpdate 50/53750/4
authorFrans Saris <franssaris@gmail.com>
Mon, 21 Aug 2017 09:49:05 +0000 (11:49 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Mon, 21 Aug 2017 12:52:50 +0000 (14:52 +0200)
Releases: master, 8,7
Resolves: #82144
Change-Id: I24b2d57e37f6ff95b7ec7bdab7cda0f21e85c90b
Reviewed-on: https://review.typo3.org/53750
Reviewed-by: Sascha Egerer <sascha@sascha-egerer.de>
Tested-by: Sascha Egerer <sascha@sascha-egerer.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/install/Classes/Updates/AbstractUpdate.php

index f926b54..a2eae36 100644 (file)
@@ -99,10 +99,9 @@ abstract class AbstractUpdate
      */
     public function shouldRenderWizard()
     {
-        $showUpdate = 0;
         $explanation = '';
-        $result = $this->checkForUpdate($explanation, $showUpdate);
-        return $showUpdate > 0 || $result == true;
+        $result = $this->checkForUpdate($explanation);
+        return (bool)$result === true;
     }
 
     /**