mod/friend_request/actions/friends/add.php 1 location
|
@@ 76-79 (lines=4) @@
|
| 73 |
|
} |
| 74 |
|
} else { |
| 75 |
|
try { |
| 76 |
|
if (!add_entity_relationship($user->getGUID(), "friendrequest", $friend->getGUID())) { |
| 77 |
|
$errors = true; |
| 78 |
|
register_error(elgg_echo("friend_request:add:exists", array($friend->name))); |
| 79 |
|
} |
| 80 |
|
} catch (Exception $e) { //register_error calls insert_data which CAN raise Exceptions. |
| 81 |
|
$errors = true; |
| 82 |
|
register_error(elgg_echo("friend_request:add:exists", array($friend->name))); |
mod/gc_mobile_api/models/user.php 1 location
|
@@ 895-897 (lines=3) @@
|
| 892 |
|
} |
| 893 |
|
} else { |
| 894 |
|
try { |
| 895 |
|
if (!add_entity_relationship($user_entity->getGUID(), "friendrequest", $friend->getGUID())) { |
| 896 |
|
return elgg_echo("friend_request:add:exists", array($friend->name)); |
| 897 |
|
} |
| 898 |
|
} catch (Exception $e) { //register_error calls insert_data which CAN raise Exceptions. |
| 899 |
|
return elgg_echo("friend_request:add:exists", array($friend->name)); |
| 900 |
|
} |