diff options
author | friendica <info@friendica.com> | 2012-02-11 23:17:55 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-02-11 23:17:55 -0800 |
commit | 4cfb1fe0cfb0520f4d6be88c1bf09cd9a03bc88a (patch) | |
tree | d78198c5b90a9fd964bc078bdb84854775ae298d | |
parent | bb19c8ba4ea279265ad146f69949a62b4024c2ab (diff) | |
download | volse-hubzilla-4cfb1fe0cfb0520f4d6be88c1bf09cd9a03bc88a.tar.gz volse-hubzilla-4cfb1fe0cfb0520f4d6be88c1bf09cd9a03bc88a.tar.bz2 volse-hubzilla-4cfb1fe0cfb0520f4d6be88c1bf09cd9a03bc88a.zip |
refresh contact record after setting change
-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; } |