mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 12:09:20 +03:00
Bugfix: undefined $sEmail
This commit is contained in:
parent
d416ab3642
commit
9f41f18d43
1 changed files with 2 additions and 1 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue