aboutsummaryrefslogtreecommitdiffstats
path: root/mod/dfrn_confirm.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2010-11-09 17:53:20 -0800
committerFriendika <info@friendika.com>2010-11-09 17:53:20 -0800
commit70bcf000e3662266df8683d57269a0b75af60330 (patch)
treefaf402beec50cdbb89edbc0667f509dd232ac810 /mod/dfrn_confirm.php
parent76b5e984e1f26387fbde89e89b12011f866dd8ce (diff)
downloadvolse-hubzilla-70bcf000e3662266df8683d57269a0b75af60330.tar.gz
volse-hubzilla-70bcf000e3662266df8683d57269a0b75af60330.tar.bz2
volse-hubzilla-70bcf000e3662266df8683d57269a0b75af60330.zip
if pre-existing relationship, don't set duplex
Diffstat (limited to 'mod/dfrn_confirm.php')
-rw-r--r--mod/dfrn_confirm.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/mod/dfrn_confirm.php b/mod/dfrn_confirm.php
index 07a2f847b..fe9c04f85 100644
--- a/mod/dfrn_confirm.php
+++ b/mod/dfrn_confirm.php
@@ -238,6 +238,9 @@ function dfrn_confirm_post(&$a,$handsfree = null) {
if(($relation == REL_FAN) || ($duplex))
$new_relation = REL_BUD;
+ if(($relation == REL_FAN) && ($duplex))
+ $duplex = 0;
+
$r = q("UPDATE `contact` SET `photo` = '%s',
`thumb` = '%s',
`micro` = '%s',
@@ -455,6 +458,9 @@ function dfrn_confirm_post(&$a,$handsfree = null) {
if(($relation == REL_VIP) || ($duplex))
$new_relation = REL_BUD;
+ if(($relation == REL_VIP) && ($duplex))
+ $duplex = 0;
+
$r = q("UPDATE `contact` SET
`photo` = '%s',
`thumb` = '%s',