aboutsummaryrefslogtreecommitdiffstats
path: root/mod/contacts.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-02-11 23:17:55 -0800
committerfriendica <info@friendica.com>2012-02-11 23:17:55 -0800
commit4cfb1fe0cfb0520f4d6be88c1bf09cd9a03bc88a (patch)
treed78198c5b90a9fd964bc078bdb84854775ae298d /mod/contacts.php
parentbb19c8ba4ea279265ad146f69949a62b4024c2ab (diff)
downloadvolse-hubzilla-4cfb1fe0cfb0520f4d6be88c1bf09cd9a03bc88a.tar.gz
volse-hubzilla-4cfb1fe0cfb0520f4d6be88c1bf09cd9a03bc88a.tar.bz2
volse-hubzilla-4cfb1fe0cfb0520f4d6be88c1bf09cd9a03bc88a.zip
refresh contact record after setting change
Diffstat (limited to 'mod/contacts.php')
-rwxr-xr-xmod/contacts.php8
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;
}