Browse Source

fixed error trap in get_datastream to log it in the watchdog - also fixed a syntax bug

pull/129/head
Jason MacWilliams 12 years ago
parent
commit
c781b4e78d
  1. 4
      api/fedora_item.inc

4
api/fedora_item.inc

@ -548,7 +548,9 @@ RDF;
* @return type * @return type
*/ */
function get_datastream($dsid, $as_of_date_time = '', $quiet = TRUE) { function get_datastream($dsid, $as_of_date_time = '', $quiet = TRUE) {
if (!array_key_exists($dsid, datastreams)) { if (!array_key_exists($dsid, $this->datastreams)) {
watchdog('fedora_repository', 'Requested invalid datastream dissemination @dsid on object @pid',
array('@dsid' => $dsid, '@pid' => $pid));
return NULL; return NULL;
} }
$params = array( $params = array(

Loading…
Cancel
Save