Browse Source

Stopped a notice.

pull/584/head
willtp87 10 years ago
parent
commit
d276979548
  1. 8
      islandora.rules.inc

8
islandora.rules.inc

@ -406,9 +406,11 @@ function islandora_rules_datastream_load_namespace_vocab($xpath, $xpath_vocab) {
/** /**
* Rules XPath helper; grab the datastream content and build a DOMXPath. * Rules XPath helper; grab the datastream content and build a DOMXPath.
*/ */
function islandora_rules_datastream_load_xpath(AbstractDatastream $datastream, $xpath_vocab) { function islandora_rules_datastream_load_xpath(AbstractDatastream $datastream, $xpath_vocab = NULL) {
$result = islandora_rules_datastream_load_domxpath($datastream->content, $xpath_vocab); $result = islandora_rules_datastream_load_domxpath($datastream->content);
islandora_rules_datastream_load_namespace_vocab($result['islandora_domxpath'], $xpath_vocab); if (is_object($xpath_vocab)) {
islandora_rules_datastream_load_namespace_vocab($result['islandora_domxpath'], $xpath_vocab);
}
return $result; return $result;
} }

Loading…
Cancel
Save