mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-02-03 20:49:31 +08:00
Fix uncaught exception
This commit is contained in:
parent
5d84af4458
commit
7165503f1d
1 changed files with 12 additions and 4 deletions
|
@ -270,7 +270,11 @@ class Actions
|
|||
if (defined('APP_INSTALLED_START') && defined('APP_INSTALLED_VERSION') &&
|
||||
APP_INSTALLED_START && !APP_INSTALLED_VERSION)
|
||||
{
|
||||
$this->KeenIO('Install');
|
||||
try
|
||||
{
|
||||
$this->KeenIO('Install');
|
||||
}
|
||||
catch (\Exception $oException) {}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -279,10 +283,14 @@ class Actions
|
|||
*/
|
||||
public function BootEnd()
|
||||
{
|
||||
if ($this->MailClient()->IsLoggined())
|
||||
try
|
||||
{
|
||||
$this->MailClient()->LogoutAndDisconnect();
|
||||
if ($this->MailClient()->IsLoggined())
|
||||
{
|
||||
$this->MailClient()->LogoutAndDisconnect();
|
||||
}
|
||||
}
|
||||
catch (\Exception $oException) {}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -6160,7 +6168,7 @@ class Actions
|
|||
{
|
||||
$sIfModifiedSince = $this->Http()->GetHeader('If-Modified-Since', '');
|
||||
$sIfNoneMatch = $this->Http()->GetHeader('If-None-Match', '');
|
||||
|
||||
|
||||
if (!empty($sIfModifiedSince) || !empty($sIfNoneMatch))
|
||||
{
|
||||
$this->Http()->StatusHeader(304);
|
||||
|
|
Loading…
Reference in a new issue