From: friendica Date: Sun, 12 Feb 2012 07:17:55 +0000 (-0800) Subject: refresh contact record after setting change X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4cfb1fe0cfb0520f4d6be88c1bf09cd9a03bc88a;p=friendica.git refresh contact record after setting change --- diff --git a/mod/contacts.php b/mod/contacts.php index 32af29c15c..ef77366da7 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; }