Browse Source

Fix the php error

pull/807/head
Brandon Weigel 4 years ago
parent
commit
42775301fd
  1. 4
      includes/orphaned_objects.inc

4
includes/orphaned_objects.inc

@ -55,7 +55,7 @@ function islandora_manage_orphaned_objects_form(array $form, array $form_state)
Please be cautious when deleting, as this action is irreversible.'), 'warning');
$orphaned_objects = islandora_get_orphaned_objects();
$query_method = variable_get('islandora_orphaned_objects_backend', 'Solr');
module_load_include('inc', 'islandora', 'includes/utilities');
$rows = array();
foreach ($orphaned_objects as $orphaned_object) {
if ($query_method == 'SPARQL') {
@ -219,7 +219,6 @@ function islandora_get_orphaned_objects() {
$orphaned_objects[] = $result;
}
elseif (!in_array($membership, $already_checked)) {
$test=islandora_object_load($membership);
$test = islandora_identify_dead_parents($membership);
if (!$test) {
$orphaned_objects[] = $result;
@ -293,7 +292,6 @@ EOQ;
));
$results = $connection->repository->ri->sparqlQuery($sparql_query_objects);
}
dd($results);
return $results;
}

Loading…
Cancel
Save