mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +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
76307c4bbf
commit
36005d8189
@ -1149,7 +1149,7 @@ class mail_sieve
|
|||||||
$sessionData['sieve_rules'] = $this->rules;
|
$sessionData['sieve_rules'] = $this->rules;
|
||||||
$sessionData['sieve_rulesByID'] = $this->rulesByID;
|
$sessionData['sieve_rulesByID'] = $this->rulesByID;
|
||||||
$sessionData['sieve_scriptToEdit'] = $this->scriptToEdit;
|
$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()
|
function restoreSessionData()
|
||||||
{
|
{
|
||||||
$sessionData = $GLOBALS['egw']->session->appsession('sieve_session_data');
|
$sessionData = Api\Cache::getSession(__CLASS__, 'sieve_session_data');
|
||||||
$this->rules = $sessionData['sieve_rules'];
|
$this->rules = $sessionData['sieve_rules'];
|
||||||
$this->rulesByID = $sessionData['sieve_rulesByID'];
|
$this->rulesByID = $sessionData['sieve_rulesByID'];
|
||||||
$this->scriptToEdit = $sessionData['sieve_scriptToEdit'];
|
$this->scriptToEdit = $sessionData['sieve_scriptToEdit'];
|
||||||
|
Loading…
Reference in New Issue
Block a user