Skip to content

Commit d727a26

Browse files
committed
Avoid accessing maybe-unexisting header property
1 parent 92d9815 commit d727a26

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugins/markmirror/markmirror.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ public function init()
2323

2424
public function load_editor(array $args): array
2525
{
26-
$headers = $args['message']->headers;
27-
$start_markmirror = isset($headers) && $headers->get('x-edited-by-markmirror') === 'yes';
26+
$start_markmirror = isset($args['message']->headers) && $args['message']->headers->get('x-edited-by-markmirror') === 'yes';
2827
$rcmail = rcube::get_instance();
2928
$rcmail->output->set_env('start_markmirror', $start_markmirror);
3029

0 commit comments

Comments
 (0)