From fc9b253e84224007c27c9162119a0c2a8360df60 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Sun, 29 Sep 2024 11:48:58 +0200 Subject: [PATCH] Fix new phpstan error --- plugins/enigma/lib/enigma_ui.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/enigma/lib/enigma_ui.php b/plugins/enigma/lib/enigma_ui.php index 1eea580cace..c31311b4945 100644 --- a/plugins/enigma/lib/enigma_ui.php +++ b/plugins/enigma/lib/enigma_ui.php @@ -1025,7 +1025,7 @@ public function status_message($p) $this->enigma->gettext('signokey'))); } } - } elseif ($sig && $sig->getCode() == enigma_error::KEYNOTFOUND) { + } elseif ($sig->getCode() == enigma_error::KEYNOTFOUND) { $attrib['class'] = 'boxwarning enigmawarning signed'; $msg = rcube::Q(str_replace('$keyid', enigma_key::format_id($sig->getData('id')), $this->enigma->gettext('signokey')));