From b5e00c5957cc6db977cf26fae2fa53d4cd86b106 Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Wed, 28 Aug 2019 16:05:06 -0400 Subject: [PATCH] More isset simplification. --- themes/bootstrap3/templates/ajax/status-full.phtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/bootstrap3/templates/ajax/status-full.phtml b/themes/bootstrap3/templates/ajax/status-full.phtml index 0c0a4588df1..488ce2a53ae 100644 --- a/themes/bootstrap3/templates/ajax/status-full.phtml +++ b/themes/bootstrap3/templates/ajax/status-full.phtml @@ -9,7 +9,7 @@ <tr> <td class="fullLocation"> <?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> <?php else: ?> <?=$locationText?> @@ -23,7 +23,7 @@ <?php endif; ?> </td> <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> <?php elseif ($item['availability']): ?> <span class="text-success"><?=($item['reserve'] == 'Y') ? $this->transEsc("On Reserve") : $this->transEsc("Available")?></span> -- GitLab