fetch_all($cookies, false, 0) as $row) { $temp[$row[uid]] = $row['username']; } foreach($cookies as $uid) { $atlist_cookie[$uid] = $temp[$uid]; } } foreach(C::t('home_follow')->fetch_all_following_by_uid($_G['uid'], 0, 0, $limit) as $row) { if($atlist_cookie[$row[followuid]]) { continue; } $atlist[$row[followuid]] = $row['fusername']; } $num = count($atlist); if($num < $limit) { $query = C::t('home_friend')->fetch_all_by_uid($_G['uid']); foreach($query as $row) { if(count($atlist) == $limit) { break; } if($atlist_cookie[$row[fuid]]) { continue; } $atlist[$row[fuid]] = $row['fusername']; } } $result = implode(',', $atlist_cookie).($atlist_cookie && $atlist ? ',' : '').implode(',', $atlist); } include template('common/getatuser'); ?>