mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 16:37:02 +03: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') &&
|
if (defined('APP_INSTALLED_START') && defined('APP_INSTALLED_VERSION') &&
|
||||||
APP_INSTALLED_START && !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()
|
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', '');
|
$sIfModifiedSince = $this->Http()->GetHeader('If-Modified-Since', '');
|
||||||
$sIfNoneMatch = $this->Http()->GetHeader('If-None-Match', '');
|
$sIfNoneMatch = $this->Http()->GetHeader('If-None-Match', '');
|
||||||
|
|
||||||
if (!empty($sIfModifiedSince) || !empty($sIfNoneMatch))
|
if (!empty($sIfModifiedSince) || !empty($sIfNoneMatch))
|
||||||
{
|
{
|
||||||
$this->Http()->StatusHeader(304);
|
$this->Http()->StatusHeader(304);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue