Browse Source

Merge pull request #397 from nigelgbanks/7.x-solution-pack-viewer-whitescreen

Prevents a white screen when a viewer is set but not enabled.
pull/395/merge
Jonathan Green 11 years ago
parent
commit
3012129ffd
  1. 4
      includes/solution_packs.inc

4
includes/solution_packs.inc

@ -745,7 +745,9 @@ function islandora_get_viewer($params = NULL, $variable_id = NULL, $fedora_objec
$viewer_id = islandora_get_viewer_id($variable_id);
if ($viewer_id AND $params !== NULL) {
$callback = islandora_get_viewer_callback($viewer_id);
return $callback($params, $fedora_object);
if (function_exists($callback)) {
return $callback($params, $fedora_object);
}
}
}
return FALSE;

Loading…
Cancel
Save