diff --git a/themes/root/templates/Email/record-sms.phtml b/themes/root/templates/Email/record-sms.phtml index 411c4ce214d00450b72f1e33a97d0602543b132d..722515247dcd5150b968fdbc7adba592ee75368f 100644 --- a/themes/root/templates/Email/record-sms.phtml +++ b/themes/root/templates/Email/record-sms.phtml @@ -15,7 +15,8 @@ // the last location encountered. $callno = $location = $backupLocation = false; $useBackupLocation = true; - foreach ($holdings as $location => $details) { + foreach ($holdings as $details) { + $location = $details['location']; foreach ($details['items'] as $item) { $callno = isset($item['callnumber']) ? $item['callnumber'] : false; if ($item['availability']) {