Browse Source

Removes watchdog logging when islandora_load_object gets a malformed PID

pull/689/head
Bryan J. Brown 8 years ago
parent
commit
60de878fe9
  1. 1
      islandora.module

1
islandora.module

@ -1229,7 +1229,6 @@ function islandora_object_load($object_id) {
// Check to see if tuque failure is due to invalid PID. // Check to see if tuque failure is due to invalid PID.
module_load_include('inc', 'islandora', 'includes/utilities'); module_load_include('inc', 'islandora', 'includes/utilities');
if (!islandora_is_valid_pid($object_id)) { if (!islandora_is_valid_pid($object_id)) {
watchdog('islandora', 'Failed to load invalid PID: @pid', array('@pid' => $object_id), WATCHDOG_ERROR);
return FALSE; return FALSE;
} }
elseif ($e->getCode() == '404') { elseif ($e->getCode() == '404') {

Loading…
Cancel
Save