From ea0979be87beebde338dfdb84f8a85a08763e26c Mon Sep 17 00:00:00 2001 From: Thomas Hackl <hackl@data-quest.de> Date: Thu, 12 May 2022 10:17:12 +0200 Subject: [PATCH] resolve tlx comments on boolean usage, re #605 --- app/views/settings/statusgruppen/modify_institute.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/settings/statusgruppen/modify_institute.php b/app/views/settings/statusgruppen/modify_institute.php index 21373c8d96e..7faa312f8c9 100644 --- a/app/views/settings/statusgruppen/modify_institute.php +++ b/app/views/settings/statusgruppen/modify_institute.php @@ -26,22 +26,22 @@ $entries = (array)DataFieldEntry::getDataFieldEntries([$user->user_id, $inst_id] <label> <?= _('Raum') ?> <?= I18N::input('raum', $institute['raum'], - ['id' => 'raum', 'disabled' => $locked ? true : false]) ?> + ['id' => 'raum', 'disabled' => $locked]) ?> </label> <label> <?= _('Sprechzeit') ?> <?= I18N::input('sprech', $institute['sprechzeiten'], - ['id' => 'sprech', 'disabled' => $locked ? true : false]) ?> + ['id' => 'sprech', 'disabled' => $locked]) ?> </label> <label> <?= _('Telefon') ?> <?= I18N::input('tel', $institute['telefon'], - ['id' => 'telefon', 'disabled' => $locked ? true : false]) ?> + ['id' => 'telefon', 'disabled' => $locked]) ?> </label> <label> <?= _('Fax') ?> <?= I18N::input('fax', $institute['fax'], - ['id' => 'fax', 'disabled' => $locked ? true : false]) ?> + ['id' => 'fax', 'disabled' => $locked]) ?> </label> <? foreach ($entries as $id => $entry): ?> -- GitLab