Commit 499d6480 authored by Penny Leach's avatar Penny Leach
Browse files

leap2a import: avoid warning in normal admin importer (leapovermnet regression)


Signed-off-by: default avatarPenny Leach <penny@mjollnir.org>
parent 85f65d1c
......@@ -385,7 +385,7 @@ class PluginImportLeap extends PluginImport {
// persondata entry
// TODO: this should return an artefact mapping so things can create
// links to profile fields, but nothing actually needs it yet
if (!array_key_exists('skippersondata', $this->data) || $this->data['skippersondata'] !== true) {
if (!is_array($this->data) || !array_key_exists('skippersondata', $this->data) || $this->data['skippersondata'] !== true) {
foreach (plugins_installed('artefact') as $plugin) {
$classname = 'LeapImport' . ucfirst($plugin->name);
if (method_exists($classname, 'import_author_data')) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment