diff options
Diffstat (limited to 'actions/friends/add.php')
-rw-r--r-- | actions/friends/add.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/friends/add.php b/actions/friends/add.php index 760da81b7..8e3cc67aa 100644 --- a/actions/friends/add.php +++ b/actions/friends/add.php @@ -22,7 +22,7 @@ // Get the user
try {
- $_SESSION['user']->addFriend($friend_guid);
+ if (!$_SESSION['user']->addFriend($friend_guid)) $errors = true;
} catch (Exception $e) {
register_error(sprintf(elgg_echo("friends:add:failure"),$friend->name));
$errors = true;
|