reworked fix from unary for bug #323 (due to incorrect use of array_key_exists())
This commit is contained in:
parent
395a9530dc
commit
03b5e3aa0c
|
@ -470,7 +470,7 @@ function network_content(&$a, $update = 0) {
|
||||||
|
|
||||||
if(count($r)) {
|
if(count($r)) {
|
||||||
foreach($r as $rr)
|
foreach($r as $rr)
|
||||||
if(! array_key_exists($rr['item_id'],$parents_arr))
|
if(! in_array($rr['item_id'],$parents_arr))
|
||||||
$parents_arr[] = $rr['item_id'];
|
$parents_arr[] = $rr['item_id'];
|
||||||
$parents_str = implode(', ', $parents_arr);
|
$parents_str = implode(', ', $parents_arr);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue