From 1f13c352a6ab27ca05e48fbdbef8a9e1e57c5e54 Mon Sep 17 00:00:00 2001 From: KarpAlex Date: Tue, 12 Apr 2022 12:04:13 +0200 Subject: [PATCH] Issues.php: moved variable declaration out of if clause (phpcs issue) --- application/controllers/system/issues/Issues.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/application/controllers/system/issues/Issues.php b/application/controllers/system/issues/Issues.php index d41210e22..fc1fb56f1 100644 --- a/application/controllers/system/issues/Issues.php +++ b/application/controllers/system/issues/Issues.php @@ -153,7 +153,9 @@ class Issues extends Auth_Controller } // add oes for which there is the "manage issues" Berechtigung - if (!$oe_kurzbz_berechtigt = $this->permissionlib->getOE_isEntitledFor(self::BERECHTIGUNG_KURZBZ)) + $oe_kurzbz_berechtigt = $this->permissionlib->getOE_isEntitledFor(self::BERECHTIGUNG_KURZBZ); + + if (!$oe_kurzbz_berechtigt) show_error('No permission or error when checking permissions'); $all_oe_kurzbz_berechtigt = array_unique(array_merge($oe_kurzbz_for_funktion, $oe_kurzbz_berechtigt));