diff --git a/plugins/sources/list.inc b/plugins/sources/list.inc index 5cf4f52..d45664c 100644 --- a/plugins/sources/list.inc +++ b/plugins/sources/list.inc @@ -209,7 +209,8 @@ class MigrateSourceList extends MigrateSource { foreach (array_keys($this->activeMap->getSourceKey()) as $key_name) { // Grab the first id and advance the array cursor. Then save the ID // using the map source key - it will be used for mapping. - list(, $id) = each($ids); + $id = current($ids); + next($ids); $row->$key_name = $id; } break;