From 36002603e243a96772e686cdaeda2cfd591a98f5 Mon Sep 17 00:00:00 2001 From: Daniel Lamb Date: Fri, 26 Oct 2012 11:56:06 -0230 Subject: [PATCH] Changed invalid reference to to match the function's parameter. Was getting an exception when trying to construct the query for the SOAP call in getOwnerId() --- api/fedora_item.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/fedora_item.inc b/api/fedora_item.inc index 4a26e516..b1fecb65 100644 --- a/api/fedora_item.inc +++ b/api/fedora_item.inc @@ -1553,7 +1553,7 @@ RDF; static function getOwnerId($PID) { $params = array( - 'query' => array(array('property' => 'pid', 'operator' => 'eq', 'value' => $object_id)), + 'query' => array(array('property' => 'pid', 'operator' => 'eq', 'value' => $PID)), 'resultFields' => array('pid', 'ownerId'), 'maxResults' => 1, );