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; break;
case 'enable': case 'enable':
$msg = lang('rule with priority ') . $checked . lang(' enabled!'); $msg = lang('rule with priority ') . $checked . lang(' enabled!');
$this->rules[$checked][status] = 'ENABLED'; $this->rules[$checked]['status'] = 'ENABLED';
break; break;
case 'disable': case 'disable':
$msg = lang('rule with priority ') . $checked . lang(' disabled!'); $msg = lang('rule with priority ') . $checked . lang(' disabled!');
$this->rules[$checked][status] = 'DISABLED'; $this->rules[$checked]['status'] = 'DISABLED';
break; break;
case 'move': case 'move':
break; break;