Index: t3lib/class.t3lib_beuserauth.php =================================================================== --- t3lib/class.t3lib_beuserauth.php (Revision 9481) +++ t3lib/class.t3lib_beuserauth.php (Arbeitskopie) @@ -396,9 +396,11 @@ * Logs out the current user and clears the form protection tokens. */ public function logoff() { - t3lib_formProtection_Factory::get( - 't3lib_formprotection_BackendFormProtection' - )->clean(); + if (isset($GLOBALS['BE_USER'])) { + t3lib_formProtection_Factory::get( + 't3lib_formprotection_BackendFormProtection' + )->clean(); + } parent::logoff(); } }