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