mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:18:57 +01:00
* Mail/Sieve: fix PHP Fatal error on minimal install when trying to edit rules or vacation notice
This commit is contained in:
parent
1ddde66957
commit
5d90b8f16d
@ -1149,7 +1149,7 @@ class mail_sieve
|
||||
$sessionData['sieve_rules'] = $this->rules;
|
||||
$sessionData['sieve_rulesByID'] = $this->rulesByID;
|
||||
$sessionData['sieve_scriptToEdit'] = $this->scriptToEdit;
|
||||
$GLOBALS['egw']->session->appsession('sieve_session_data','',$sessionData);
|
||||
Api\Cache::setSession(__CLASS__, 'sieve_session_data', $sessionData);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1193,7 +1193,7 @@ class mail_sieve
|
||||
*/
|
||||
function restoreSessionData()
|
||||
{
|
||||
$sessionData = $GLOBALS['egw']->session->appsession('sieve_session_data');
|
||||
$sessionData = Api\Cache::getSession(__CLASS__, 'sieve_session_data');
|
||||
$this->rules = $sessionData['sieve_rules'];
|
||||
$this->rulesByID = $sessionData['sieve_rulesByID'];
|
||||
$this->scriptToEdit = $sessionData['sieve_scriptToEdit'];
|
||||
|
Loading…
Reference in New Issue
Block a user