Bug #13210

PHP warning when updating archival description index, if no PREMIS data associated with record

Added by David Juhasz 4 months ago.

Status:NewStart date:10/31/2019
Priority:LowDue date:
Assignee:David Juhasz% Done:

0%

Category:Search / Browse
Target version:-
Google Code Legacy ID: Tested version:2.6
Sponsored:No Requires documentation:

Description

When testing csv:physicalobject-import I am regularly seeing this PHP warning:

PHP Warning:  Invalid argument supplied for foreach() in 
/home/vagrant/atom26x/plugins/arElasticSearchPlugin/lib/arElasticSearchPluginUtil.class.php
on line 544

The foreach() in question is assuming the preceding search for PREMIS data will return an array, but it returns null if no data is found.

Also available in: Atom PDF