diff --git a/themes/bootstrap3/templates/myresearch/profile.phtml b/themes/bootstrap3/templates/myresearch/profile.phtml index ccc4ed4160a7336fd502f7783aa5916f35d198ab..d082dc1b054fe01210412583110891d4ce2d4bb7 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>