diff --git a/typo3/sysext/core/Classes/Utility/GeneralUtility.php b/typo3/sysext/core/Classes/Utility/GeneralUtility.php index 9e84404672d8966fb914892bbb1ea41ca5d93d8c..deaa74153c67de0f0ae5dc97784a417108272788 100644 --- a/typo3/sysext/core/Classes/Utility/GeneralUtility.php +++ b/typo3/sysext/core/Classes/Utility/GeneralUtility.php @@ -3054,7 +3054,7 @@ Connection: close */ static public function getMaxUploadFileSize($localLimit = 0) { // Don't allow more than the global max file size at all - $t3Limit = (int)$localLimit > 0 ? $localLimit : $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize']; + $t3Limit = (int)($localLimit > 0 ? $localLimit : $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize']); // As TYPO3 is handling the file size in KB, multiply by 1024 to get bytes $t3Limit = $t3Limit * 1024; // Check for PHP restrictions of the maximum size of one of the $_FILES diff --git a/typo3/sysext/frontend/Classes/Authentication/FrontendUserAuthentication.php b/typo3/sysext/frontend/Classes/Authentication/FrontendUserAuthentication.php index f5e92c18cf7cc1a9715d360accc4a0df41dcec1f..2249b48c172f287a112808ac197521907632af77 100644 --- a/typo3/sysext/frontend/Classes/Authentication/FrontendUserAuthentication.php +++ b/typo3/sysext/frontend/Classes/Authentication/FrontendUserAuthentication.php @@ -470,7 +470,7 @@ class FrontendUserAuthentication extends \TYPO3\CMS\Core\Authentication\Abstract * @return void */ public function gc() { - $timeoutTimeStamp = (int)$GLOBALS['EXEC_TIME'] - $this->sessionDataLifetime; + $timeoutTimeStamp = (int)($GLOBALS['EXEC_TIME'] - $this->sessionDataLifetime); $GLOBALS['TYPO3_DB']->exec_DELETEquery('fe_session_data', 'tstamp < ' . $timeoutTimeStamp); parent::gc(); } diff --git a/typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php b/typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php index e551117eb1c58eeb287f12b3a4023855813b5b48..0d05bb7a1f1941e03e827af57103c187d6573734 100644 --- a/typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php +++ b/typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php @@ -839,8 +839,8 @@ class AbstractMenuContentObject { } $c = 0; $c_b = 0; - $minItems = (int)$this->mconf['minItems'] ? $this->mconf['minItems'] : $this->conf['minItems']; - $maxItems = (int)$this->mconf['maxItems'] ? $this->mconf['maxItems'] : $this->conf['maxItems']; + $minItems = (int)($this->mconf['minItems'] ?: $this->conf['minItems']); + $maxItems = (int)($this->mconf['maxItems'] ?: $this->conf['maxItems']); $begin = $this->parent_cObj->calc($this->mconf['begin'] ? $this->mconf['begin'] : $this->conf['begin']); $minItemsConf = isset($this->mconf['minItems.']) ? $this->mconf['minItems.'] : (isset($this->conf['minItems.']) ? $this->conf['minItems.'] : NULL); $minItems = is_array($minItemsConf) ? $this->parent_cObj->stdWrap($minItems, $minItemsConf) : $minItems;