aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-10-19 17:21:19 -0700
committerfriendica <info@friendica.com>2012-10-19 17:21:19 -0700
commit244ad5071dc7d76b8f87f58349cf8532a7b6aac4 (patch)
tree18d613bc7aef11d86f91332e69148e4d98a6f362 /mod
parent112e4e6c9c807b834c34599a7602da33adfb410e (diff)
downloadvolse-hubzilla-244ad5071dc7d76b8f87f58349cf8532a7b6aac4.tar.gz
volse-hubzilla-244ad5071dc7d76b8f87f58349cf8532a7b6aac4.tar.bz2
volse-hubzilla-244ad5071dc7d76b8f87f58349cf8532a7b6aac4.zip
cleanup abook structure
Diffstat (limited to 'mod')
-rw-r--r--mod/profiles.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/profiles.php b/mod/profiles.php
index 1e34542bc..9ae03aaf5 100644
--- a/mod/profiles.php
+++ b/mod/profiles.php
@@ -426,13 +426,13 @@ function profiles_content(&$a) {
// move every contact using this profile as their default to the user default
- $r = q("UPDATE abook SET abook_profile = (SELECT profile_guid AS FROM profile WHERE is_default = 1 AND uid = %d LIMIT 1) WHERE abook_profile = '%s' AND `uid` = %d ",
+ $r = q("UPDATE abook SET abook_profile = (SELECT profile_guid AS FROM profile WHERE is_default = 1 AND uid = %d LIMIT 1) WHERE abook_profile = '%s' AND abook_channel = %d ",
intval(local_user()),
dbesc($profile_guid),
intval(local_user())
);
$r = q("DELETE FROM `profile` WHERE `id` = %d AND `uid` = %d LIMIT 1",
- intval($a->argv[2]),
+ intval(argv(2)),
intval(local_user())
);
if($r)