aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-10-22 15:07:08 +1100
committerGitHub <noreply@github.com>2016-10-22 15:07:08 +1100
commitbb1b6c906d9b45e7d700071a9b7b85a1e6c56077 (patch)
tree6cb1c5b95f43013ba4e961f764ab51aabaa538ef /Zotlabs/Module
parentaa9fef7778ab0b829d09493436e463b94af79ee6 (diff)
parent351f21c89fd8ad2e30dffa60735d6d14bcbce3a2 (diff)
downloadvolse-hubzilla-bb1b6c906d9b45e7d700071a9b7b85a1e6c56077.tar.gz
volse-hubzilla-bb1b6c906d9b45e7d700071a9b7b85a1e6c56077.tar.bz2
volse-hubzilla-bb1b6c906d9b45e7d700071a9b7b85a1e6c56077.zip
Merge pull request #563 from ilu33/dev
Postgres complaining again ...
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Profiles.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Module/Profiles.php b/Zotlabs/Module/Profiles.php
index 127304f92..19a642a83 100644
--- a/Zotlabs/Module/Profiles.php
+++ b/Zotlabs/Module/Profiles.php
@@ -31,7 +31,7 @@ class Profiles extends \Zotlabs\Web\Controller {
// 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 abook_channel = %d ",
+ $r = q("UPDATE abook SET abook_profile = (SELECT profile_guid FROM profile WHERE is_default = 1 AND uid = %d LIMIT 1) WHERE abook_profile = '%s' AND abook_channel = %d ",
intval(local_channel()),
dbesc($profile_guid),
intval(local_channel())