From 7165503f1d6a13c530101726284b8da78be3c7db Mon Sep 17 00:00:00 2001 From: RainLoop Team Date: Fri, 27 Jun 2014 01:52:12 +0400 Subject: [PATCH] Fix uncaught exception --- .../v/0.0.0/app/libraries/RainLoop/Actions.php | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/rainloop/v/0.0.0/app/libraries/RainLoop/Actions.php b/rainloop/v/0.0.0/app/libraries/RainLoop/Actions.php index c81d29055..75567eab0 100644 --- a/rainloop/v/0.0.0/app/libraries/RainLoop/Actions.php +++ b/rainloop/v/0.0.0/app/libraries/RainLoop/Actions.php @@ -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);