diff options
Diffstat (limited to 'mod')
-rwxr-xr-x | mod/contacts.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mod/contacts.php b/mod/contacts.php index 32af29c15..ef77366da 100755 --- a/mod/contacts.php +++ b/mod/contacts.php @@ -100,6 +100,14 @@ function contacts_post(&$a) { info( t('Contact updated.') . EOL); else notice( t('Failed to update contact record.') . EOL); + + $r = q("select * from contact where id = %d and uid = %d limit 1", + intval($contact_id), + intval(local_user()) + ); + if($r && count($r)) + $a->data['contact'] = $r[0]; + return; } |