PHP8: fix error Undefined constant "status"

This commit is contained in:
Hadi Nategh 2021-10-14 15:37:52 +02:00
parent 894ebe2f51
commit 3317cc735a

View File

@ -949,11 +949,11 @@ class mail_sieve
break;
case 'enable':
$msg = lang('rule with priority ') . $checked . lang(' enabled!');
$this->rules[$checked][status] = 'ENABLED';
$this->rules[$checked]['status'] = 'ENABLED';
break;
case 'disable':
$msg = lang('rule with priority ') . $checked . lang(' disabled!');
$this->rules[$checked][status] = 'DISABLED';
$this->rules[$checked]['status'] = 'DISABLED';
break;
case 'move':
break;