Try to catch exceptions from Sieve retriveRuels, and call emailadminWizard

This commit is contained in:
Hadi Nategh 2014-08-05 09:26:28 +00:00
parent 1bb1d18997
commit 19ff0d23cc

View File

@ -2294,9 +2294,13 @@ class mail_ui
if ($vacation) if ($vacation)
{ {
$sieveServer = $this->mail_bo->icServer; $sieveServer = $this->mail_bo->icServer;
try
{
$sieveServer->retrieveRules(); $sieveServer->retrieveRules();
$vacation = $sieveServer->getVacation(); $vacation = $sieveServer->getVacation();
} catch (PEAR_Exception $ex) {
$this->callWizard($ex->getMessage());
}
} }
//error_log(__METHOD__.__LINE__.' Server:'.self::$icServerID.' Vacation retrieved:'.array2string($vacation)); //error_log(__METHOD__.__LINE__.' Server:'.self::$icServerID.' Vacation retrieved:'.array2string($vacation));
return $vacation; return $vacation;