Small fixes

This commit is contained in:
RainLoop Team 2014-11-13 02:59:23 +04:00
parent 6266b50c03
commit d5c68d1761
2 changed files with 23 additions and 11 deletions

View file

@ -292,7 +292,7 @@ class Actions
{
$this->KeenIO('Install');
}
catch (\Exception $oException) {}
catch (\Exception $oException) { unset($oException); }
}
}
@ -5766,6 +5766,8 @@ class Actions
$this->Plugins()->RunHook('ajax.suggestions-pre', array(&$aResult, $sQuery, $oAccount, $iLimit));
if ($iLimit > \count($aResult) && 0 < \strlen($sQuery))
{
try
{
// Address Book
$oAddressBookProvider = $this->AddressBookProvider($oAccount);
@ -5782,6 +5784,11 @@ class Actions
}
}
}
catch (\Exception $oException)
{
$this->Logger()->WriteException($oException);
}
}
if ($iLimit < \count($aResult))
{

View file

@ -72,6 +72,11 @@ abstract class PdoAbstract
throw new \Exception('Unknown PDO SQL connection type');
}
if (empty($sDsn))
{
throw new \Exception('Empty PDO DSN configuration');
}
$this->sDbType = $sType;
$oPdo = false;