mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 17:33:49 +01:00
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:
parent
abe17476dd
commit
1e23fca924
@ -379,6 +379,7 @@ class Link extends Link\Storage
|
|||||||
if (is_array($id1) || !$id1) // create link only in $id1 array
|
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']);
|
self::link($app1, $id1, $link['app'], $link['id'], $link['remark'],$link['owner'],$link['lastmod']);
|
||||||
|
next($app2);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
switch ($link['app'])
|
switch ($link['app'])
|
||||||
|
Loading…
Reference in New Issue
Block a user