Browse Source

Adds check for invalid PIDs to islandora_object_load fails

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

9
islandora.module

@ -1230,7 +1230,14 @@ function islandora_object_load($object_id) {
return FALSE; return FALSE;
} }
else { else {
return NULL; module_load_include('inc', 'islandora', 'includes/utilities');
if (!islandora_is_valid_pid($object_id)) {
watchdog('islandora', 'Failed to load invalid PID: @pid', array('@pid' => $object_id), WATCHDOG_ERROR);
return FALSE;
}
else {
return NULL;
}
} }
} }
} }

Loading…
Cancel
Save