diff --git a/ObjectHelper.inc b/ObjectHelper.inc index 0f62ec8f..a3fff027 100644 --- a/ObjectHelper.inc +++ b/ObjectHelper.inc @@ -510,7 +510,7 @@ class ObjectHelper { $pids = array(); $query = 'select $object from <#ri> where $object - and $object '; + and $object '; $content_models = $collectionHelper->getRelatedItems($pid, $query); if (empty($content_models)) { @@ -529,7 +529,7 @@ class ObjectHelper { } $cmodels = array(); foreach ($sxml->xpath('//@uri') as $uri) { - if (strpos($uri, 'fedora-system:fedoraObject-3.0') != FALSE && $include_fedora_system_content_models == FALSE) { + if (strpos($uri, 'fedora-system:FedoraObject-3.0') != FALSE && $include_fedora_system_content_models == FALSE) { continue; } $cmodel_pid = substr(strstr($uri, '/'), 1);