Api - Fix infinite loop in link if app2 param is not string or array of arrays

This commit is contained in:
nathangray 2019-01-22 11:49:45 -07:00
parent 4008f82be3
commit 65cae1bf8d

View File

@ -369,6 +369,7 @@ class Link extends Link\Storage
if (!is_array($link)) // check for unlink-marker
{
//echo "<b>link='$link' is no array</b><br>\n";
next($app2);
continue;
}
if (is_array($id1) || !$id1) // create link only in $id1 array