From 5e91c4fa08140c97e0230f509d0b483fdaebd6b5 Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Mon, 19 Mar 2018 15:56:53 -0400
Subject: [PATCH] More concise code.

---
 themes/bootstrap3/templates/myresearch/profile.phtml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/themes/bootstrap3/templates/myresearch/profile.phtml b/themes/bootstrap3/templates/myresearch/profile.phtml
index ccc4ed4160a..d082dc1b054 100644
--- a/themes/bootstrap3/templates/myresearch/profile.phtml
+++ b/themes/bootstrap3/templates/myresearch/profile.phtml
@@ -25,7 +25,7 @@
     <?php if (count($this->pickup ?? []) > 1): // Skip form if only one location: ?>
       <tr><th><?=$this->transEsc('Preferred Library')?>:</th>
       <?php
-        $selected = (isset($this->profile['home_library']) && $this->profile['home_library'] != "")
+        $selected = (strlen($this->profile['home_library'] ?? '') > 0)
             ? $this->profile['home_library'] : $this->defaultPickupLocation
       ?>
       <td>
-- 
GitLab