From 592623f0c32823fe54457549261f98de2b4b7f11 Mon Sep 17 00:00:00 2001 From: qadan Date: Thu, 14 Jul 2016 13:42:19 -0300 Subject: [PATCH] accounting for PHP weirdness --- islandora.api.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/islandora.api.php b/islandora.api.php index 3ec7fa74..a50a0c24 100644 --- a/islandora.api.php +++ b/islandora.api.php @@ -759,7 +759,8 @@ function hook_islandora_derivative_alter(&$derivatives, AbstractObject $object, 'dateLastModified' => NULL, 'dsid' => NULL, ); - if (empty(array_diff_key($ds_modified_params, $mask))) { + $param_diff = array_diff_key($ds_modified_params, $mask); + if (empty($param_diff)) { $derivatives = array(); } }