forked from extern/egroupware
fix for invalid operand, if vacation cache is not yet initialised
This commit is contained in:
parent
e06b02f6f6
commit
217a2a8a11
@ -2300,10 +2300,12 @@ class mail_ui
|
||||
$sieveServer->retrieveRules();
|
||||
$vacation = $sieveServer->getVacation();
|
||||
|
||||
$cachedVacations = array($sieveServer->acc_id => $vacation) + $cachedVacations;
|
||||
$cachedVacations = array($sieveServer->acc_id => $vacation) + (array)$cachedVacations;
|
||||
// Set vacation to the instance cache for particular account with expiration of one day
|
||||
egw_cache::setCache(egw_cache::INSTANCE, 'email', 'vacationNotice'+$GLOBALS['egw_info']['user']['account_lid'], $cachedVacations, 60*60*24);
|
||||
} catch (PEAR_Exception $ex) {
|
||||
}
|
||||
catch (PEAR_Exception $ex)
|
||||
{
|
||||
$this->callWizard($ex->getMessage(), true, 'error');
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user