Fix uncaught exception

This commit is contained in:
RainLoop Team 2014-06-27 01:52:12 +04:00
parent 5d84af4458
commit 7165503f1d

View file

@ -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);