=================================================================== --- typo3/sysext/felogin/pi1/class.tx_felogin_pi1.php (revision 6479) +++ typo3/sysext/felogin/pi1/class.tx_felogin_pi1.php (working copy) @@ -493,7 +493,8 @@ $markerArray['###ACTION_URI###'] = htmlspecialchars($this->redirectUrl); $this->redirectUrl = ''; } - if (($this->conf['showPermaLogin']) && ($GLOBALS['TYPO3_CONF_VARS']['FE']['permalogin'] == 0 || $GLOBALS['TYPO3_CONF_VARS']['FE']['permalogin'] == 1) && $GLOBALS['TYPO3_CONF_VARS']['FE']['lifetime'] > 0) { + // Permanent Login is only possible if lifetime is greater than 0 and permalogin is not equal -1 + if ($this->conf['showPermaLogin'] && $GLOBALS['TYPO3_CONF_VARS']['FE']['permalogin'] != -1 && $GLOBALS['TYPO3_CONF_VARS']['FE']['lifetime'] > 0) { $markerArray['###PERMALOGIN###'] = $this->pi_getLL('permalogin', '', 1); if($GLOBALS['TYPO3_CONF_VARS']['FE']['permalogin'] == 1) { $markerArray['###PERMALOGIN_HIDDENFIELD_ATTRIBUTES###'] = 'disabled="disabled"';