* [OQRS] hide menu entry only if the feature is disabled

This commit is contained in:
Christoph Kottke
2024-06-13 14:39:47 +02:00
committed by Christoph Kotte, DG0TM
parent f1ff18cbb0
commit ed28899a1b

View File

@@ -393,8 +393,8 @@
$location_list = null;
}
if (!($this->config->item('disable_oqrs') ?? false)) {
$oqrs_requests = $this->oqrs_model->oqrs_requests($location_list);
if ($oqrs_requests > 0) {
?>
<li><a class="dropdown-item" href="<?php echo site_url('oqrs/requests'); ?>" title="OQRS Requests"><i class="fa fa-id-card"></i> <?php echo lang('menu_oqrs_requests'); ?> <?php if ($oqrs_requests > 0) {
echo "<span class=\"badge text-bg-light\">" . $oqrs_requests . "</span>";