Api - Fix infinite loop if id1 parameter is an array

Triggered by linking to an unsaved entry that already has a link
This commit is contained in:
nathangray 2019-07-09 10:37:21 -06:00
parent abe17476dd
commit 1e23fca924

View File

@ -379,6 +379,7 @@ class Link extends Link\Storage
if (is_array($id1) || !$id1) // create link only in $id1 array
{
self::link($app1, $id1, $link['app'], $link['id'], $link['remark'],$link['owner'],$link['lastmod']);
next($app2);
continue;
}
switch ($link['app'])