From 9f0f88716196b439f179daa0817352fee7960768 Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Wed, 21 May 2014 13:34:25 -0400
Subject: [PATCH] Eliminated notice.

---
 .../VuFindSearch/src/VuFindSearch/Backend/Primo/Connector.php   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/module/VuFindSearch/src/VuFindSearch/Backend/Primo/Connector.php b/module/VuFindSearch/src/VuFindSearch/Backend/Primo/Connector.php
index b1976658a7a..c9b69cdf9ac 100644
--- a/module/VuFindSearch/src/VuFindSearch/Backend/Primo/Connector.php
+++ b/module/VuFindSearch/src/VuFindSearch/Backend/Primo/Connector.php
@@ -423,7 +423,7 @@ class Connector
             //   that means it has the prim namespace prefix.
             // So first set the right prefix
             $prefix = $doc;
-            if ($doc->PrimoNMBib != 'true') {
+            if ($doc->PrimoNMBib != 'true' && isset($namespaces['prim'])) {
                 // Use the namespace prefix to get those missing child
                 //   elements out of $doc.
                 $prefix = $doc->children($namespaces['prim']);
-- 
GitLab