Bugfix: undefined $sEmail

This commit is contained in:
the-djmaze 2022-11-01 21:53:39 +01:00
parent d416ab3642
commit 9f41f18d43

View file

@ -41,7 +41,7 @@ class NextcloudPlugin extends \RainLoop\Plugins\AbstractPlugin
public static function IsIntegrated()
{
return !empty($_ENV['SNAPPYMAIL_NEXTCLOUD']) && \class_exists('OC') && isset(\OC::$server);
return \class_exists('OC') && isset(\OC::$server);
}
public static function IsLoggedIn()
@ -170,6 +170,7 @@ class NextcloudPlugin extends \RainLoop\Plugins\AbstractPlugin
];
if (empty($aResult['Auth'])) {
$config = \OC::$server->getConfig();
$sEmail = '';
// Only store the user's password in the current session if they have
// enabled auto-login using Nextcloud username or email address.
if ($config->getAppValue('snappymail', 'snappymail-autologin', false)) {