aboutsummaryrefslogtreecommitdiffstats
path: root/mod/dfrn_confirm.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-05-23 20:30:37 -0700
committerFriendika <info@friendika.com>2011-05-23 20:30:37 -0700
commit040fc247a0caa51e0d4da4169980dc32e80ee804 (patch)
treeedbf6122cc4b099222bf9ca6acf38f0aa7982aea /mod/dfrn_confirm.php
parent19ccd658ebcf13a7cc208a3e460e44d152dda32f (diff)
downloadvolse-hubzilla-040fc247a0caa51e0d4da4169980dc32e80ee804.tar.gz
volse-hubzilla-040fc247a0caa51e0d4da4169980dc32e80ee804.tar.bz2
volse-hubzilla-040fc247a0caa51e0d4da4169980dc32e80ee804.zip
bug #85
Diffstat (limited to 'mod/dfrn_confirm.php')
-rw-r--r--mod/dfrn_confirm.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/mod/dfrn_confirm.php b/mod/dfrn_confirm.php
index 4e2a70e04..7c11b78d5 100644
--- a/mod/dfrn_confirm.php
+++ b/mod/dfrn_confirm.php
@@ -632,12 +632,13 @@ function dfrn_confirm_post(&$a,$handsfree = null) {
logger('dfrn_confirm: request: info updated');
- $r = q("SELECT * FROM `contact` LEFT JOIN `user` ON `contact`.`uid` = `user`.`uid`
+ $r = q("SELECT `contact`.*, `user`.* FROM `contact` LEFT JOIN `user` ON `contact`.`uid` = `user`.`uid`
WHERE `contact`.`id` = %d LIMIT 1",
intval($dfrn_record)
);
if((count($r)) && ($r[0]['notify-flags'] & NOTIFY_CONFIRM)) {
+ push_lang($r[0]['language']);
$tpl = (($new_relation == REL_BUD)
? get_intltext_template('friend_complete_eml.tpl')
: get_intltext_template('intro_complete_eml.tpl'));
@@ -661,6 +662,7 @@ function dfrn_confirm_post(&$a,$handsfree = null) {
if(!$res) {
// pointless throwing an error here and confusing the person at the other end of the wire.
}
+ pop_lang();
}
xml_status(0); // Success
return; // NOTREACHED