* Mail/Sieve: fix PHP Fatal error on minimal install when trying to edit rules or vacation notice

This commit is contained in:
Ralf Becker 2016-07-07 10:21:37 +02:00
parent 76307c4bbf
commit 36005d8189

View File

@ -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'];