aboutsummaryrefslogtreecommitdiffstats
path: root/mod/network.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/network.php')
-rw-r--r--mod/network.php12
1 files changed, 3 insertions, 9 deletions
diff --git a/mod/network.php b/mod/network.php
index a85e11f90..b37be2fa8 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -661,14 +661,9 @@ function network_content(&$a, $update = 0, $load = false) {
// Then fetch all the children of the parents that are on this page
- $parents_arr = array();
- $parents_str = '';
-
if(count($r)) {
- foreach($r as $rr)
- if(! in_array($rr['item_id'],$parents_arr))
- $parents_arr[] = $rr['item_id'];
- $parents_str = implode(', ', $parents_arr);
+
+ $parents_str = ids_to_querystr($r,'item_id');
$items = q("SELECT `item`.*, `item`.`id` AS `item_id`,
`contact`.`name`, `contact`.`photo`, `contact`.`url`, `contact`.`alias`, `contact`.`rel`, `contact`.`writable`,
@@ -719,9 +714,8 @@ function network_content(&$a, $update = 0, $load = false) {
$second = dba_timer();
- if(! $update) {
+ if(! $update)
$o .= alt_pager($a,count($items));
- }
// logger('parent dba_timer: ' . sprintf('%01.4f',$first - $start));
// logger('child dba_timer: ' . sprintf('%01.4f',$second - $first));