]> git.mxchange.org Git - friendica.git/commitdiff
reworked fix from unary for bug #323 (due to incorrect use of array_key_exists())
authorfriendica <info@friendica.com>
Thu, 8 Mar 2012 05:12:31 +0000 (21:12 -0800)
committerfriendica <info@friendica.com>
Thu, 8 Mar 2012 05:12:31 +0000 (21:12 -0800)
mod/network.php

index 8da1561a0a4bd95f44a0b70608a6b4472dfcb47e..27c6e315b81fc05fc48a0bca9012507e614e245d 100755 (executable)
@@ -470,7 +470,7 @@ function network_content(&$a, $update = 0) {
 
                if(count($r)) {
                        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_str = implode(', ', $parents_arr);