diff --git a/includes/derivatives.inc b/includes/derivatives.inc index 72d61235..cc37bab6 100644 --- a/includes/derivatives.inc +++ b/includes/derivatives.inc @@ -213,7 +213,7 @@ function islandora_do_batch_derivatives(AbstractObject $object, array $options) * Returns the filtered array of hooks to be ran. */ function islandora_filter_derivatives($hooks, $options, AbstractObject $object) { - if (array_key_exists('source_dsid', $options)) { + if (array_key_exists('source_dsid', $options) && $options['source_dsid'] !== NULL) { $hooks = array_filter($hooks, function ($filter_hook) use ($options) { return array_key_exists('source_dsid', $filter_hook) && $filter_hook['source_dsid'] == $options['source_dsid'];