]> git.mxchange.org Git - friendica.git/commitdiff
refresh contact record after setting change
authorfriendica <info@friendica.com>
Sun, 12 Feb 2012 07:17:55 +0000 (23:17 -0800)
committerfriendica <info@friendica.com>
Sun, 12 Feb 2012 07:17:55 +0000 (23:17 -0800)
mod/contacts.php

index 32af29c15c17e32a332b16e1e24d434a1595a5a0..ef77366da71ddeae61fd4831e05e0693e5b32170 100755 (executable)
@@ -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;
 
 }