The Gitlab instance will be restarted on Monday April 28th at 2AM. There will be a short interruption of service.

Skip to content
Snippets Groups Projects
Commit b5e00c59 authored by Demian Katz's avatar Demian Katz Committed by Robert Lange
Browse files

More isset simplification.

parent 3dc8539e
No related merge requests found
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<tr> <tr>
<td class="fullLocation"> <td class="fullLocation">
<?php $locationText = $this->transEsc('location_' . $item['location'], [], $item['location']); ?> <?php $locationText = $this->transEsc('location_' . $item['location'], [], $item['location']); ?>
<?php if (isset($item['locationhref']) && $item['locationhref']): ?> <?php if ($item['locationhref'] ?? false): ?>
<a href="<?=$item['locationhref']?>" target="_blank"><?=$locationText?></a> <a href="<?=$item['locationhref']?>" target="_blank"><?=$locationText?></a>
<?php else: ?> <?php else: ?>
<?=$locationText?> <?=$locationText?>
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<?php endif; ?> <?php endif; ?>
</td> </td>
<td class="fullAvailability"> <td class="fullAvailability">
<?php if (isset($item['use_unknown_message']) && $item['use_unknown_message']): ?> <?php if ($item['use_unknown_message'] ?? false): ?>
<span><?=$this->transEsc("status_unknown_message")?></span> <span><?=$this->transEsc("status_unknown_message")?></span>
<?php elseif ($item['availability']): ?> <?php elseif ($item['availability']): ?>
<span class="text-success"><?=($item['reserve'] == 'Y') ? $this->transEsc("On Reserve") : $this->transEsc("Available")?></span> <span class="text-success"><?=($item['reserve'] == 'Y') ? $this->transEsc("On Reserve") : $this->transEsc("Available")?></span>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment