From 579a55a00d460ba15dd5a270c96fc0af8212f8a2 Mon Sep 17 00:00:00 2001 From: Harald Bamberger Date: Thu, 17 Sep 2026 14:18:10 +0200 Subject: [PATCH] fix nested ternary operators --- application/models/accounting/Vertrag_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/accounting/Vertrag_model.php b/application/models/accounting/Vertrag_model.php index e6025b958..b49f6ef53 100644 --- a/application/models/accounting/Vertrag_model.php +++ b/application/models/accounting/Vertrag_model.php @@ -44,7 +44,7 @@ class Vertrag_model extends DB_Model : null; $lehreinheit_id = (isset($lehreinheit_id) && is_numeric($lehreinheit_id)) ? $lehreinheit_id - : $vertragstyp_kurzbz == 'Betreuung' ? null : show_error('lehreinheit_id must be set and numeric.'); + : (($vertragstyp_kurzbz == 'Betreuung') ? null : show_error('lehreinheit_id must be set and numeric.')); $vertragsstunden = (isset($vertragsstunden) && is_numeric($vertragsstunden)) ? $vertragsstunden : 0;