Browse Source

check for array not being null

d9_islandora
ezoller 4 years ago
parent
commit
24ed82c475
  1. 2
      islandora.module

2
islandora.module

@ -205,7 +205,7 @@ function islandora_file_insert(FileInterface $file) {
*/
function islandora_file_update(FileInterface $file) {
// Exit early if unchanged.
if ($file->filehash['sha1'] == $file->original->filehash['sha1']) {
if ($file->filehash != NULL && $file->original->filehash != NULL && $file->filehash['sha1'] == $file->original->filehash['sha1']) {
return;
}

Loading…
Cancel
Save