diff options
Diffstat (limited to 'search/index.php')
-rw-r--r-- | search/index.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/search/index.php b/search/index.php index 4fda4ceb8..a0deac413 100644 --- a/search/index.php +++ b/search/index.php @@ -33,6 +33,17 @@ } else {
$owner_guid_array = $owner_guid;
}
+ $friends = (int) get_input('friends',0);
+ if ($friends > 0) {
+ if ($friends = get_user_friends($friends,'',9999)) {
+ $owner_guid_array = array();
+ foreach($friends as $friend) {
+ $owner_guid_array[] = $friend->guid;
+ }
+ } else {
+ $owner_guid = -1;
+ }
+ }
// Set up submenus
if ($object_types = get_registered_entity_types()) {
|