From bb583fed815bddaab152d7cb0a9da62151bba032 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Fri, 26 Mar 2021 08:24:58 +0100 Subject: [PATCH] Fix PHP8 warning (#7972) --- plugins/identity_select/identity_select.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/identity_select/identity_select.php b/plugins/identity_select/identity_select.php index e0c37232f..5020ff991 100644 --- a/plugins/identity_select/identity_select.php +++ b/plugins/identity_select/identity_select.php @@ -49,7 +49,7 @@ class identity_select extends rcube_plugin */ function select($p) { - if ($p['selected'] !== null || !is_object($p['message']->headers)) { + if ($p['selected'] !== null || empty($p['message']->headers)) { return $p; }