Fixing a small css issue in the user class.
[elgg.git] / units / friends / user_friends.php
blob3dc9406042b5d3e3eda4e189c4e47129d0cb11af
1 <?php
2 global $CFG,$USER;
4 if (logged_on) {
5 $friends = array();
6 if ($result = get_records_sql('SELECT u.ident,1 FROM '.$CFG->prefix.'friends
7 JOIN '.$CFG->prefix.'users u ON u.ident = f.friend
8 WHERE owner = ? AND u.user_type = ? LIMIT 8'
9 ,array($USER->ident,'person'))) {
10 foreach($result as $row) {
11 $friends[] = $row->ident;
14 run("users:infobox",array(".". __gettext("Your Friends") ."",array($friends),"<a href=\"friends/\">". __gettext("Friends Screen") ."</a>"));