aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-11 16:56:39 -0800
committerfriendica <info@friendica.com>2014-02-11 16:56:39 -0800
commitb5728fa42efa0d12da8814711e0875da7fb88672 (patch)
tree1499b03be17dc9d59f04cac0c31f75427f89ac6e /mod
parent9498ed17ab4d71d926c47d02f4c9ae2f97e1a1d1 (diff)
downloadvolse-hubzilla-b5728fa42efa0d12da8814711e0875da7fb88672.tar.gz
volse-hubzilla-b5728fa42efa0d12da8814711e0875da7fb88672.tar.bz2
volse-hubzilla-b5728fa42efa0d12da8814711e0875da7fb88672.zip
fixes to thing profile assignments
Diffstat (limited to 'mod')
-rw-r--r--mod/connections.php2
-rw-r--r--mod/connedit.php2
-rw-r--r--mod/item.php2
-rw-r--r--mod/thing.php7
4 files changed, 8 insertions, 5 deletions
diff --git a/mod/connections.php b/mod/connections.php
index 3da9cec74..e36cb5fc7 100644
--- a/mod/connections.php
+++ b/mod/connections.php
@@ -41,7 +41,7 @@ function connections_post(&$a) {
call_hooks('contact_edit_post', $_POST);
- $profile_id = $_POST['profile-assign'];
+ $profile_id = $_POST['profile_assign'];
if($profile_id) {
$r = q("SELECT profile_guid FROM profile WHERE profile_guid = '%s' AND `uid` = %d LIMIT 1",
dbesc($profile_id),
diff --git a/mod/connedit.php b/mod/connedit.php
index 3f507cc3b..c6f64ccfc 100644
--- a/mod/connedit.php
+++ b/mod/connedit.php
@@ -53,7 +53,7 @@ function connedit_post(&$a) {
call_hooks('contact_edit_post', $_POST);
- $profile_id = $_POST['profile-assign'];
+ $profile_id = $_POST['profile_assign'];
if($profile_id) {
$r = q("SELECT profile_guid FROM profile WHERE profile_guid = '%s' AND `uid` = %d LIMIT 1",
dbesc($profile_id),
diff --git a/mod/item.php b/mod/item.php
index a9c0d80d3..173198f4a 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -44,7 +44,7 @@ function item_post(&$a) {
call_hooks('post_local_start', $_REQUEST);
- logger('postvars ' . print_r($_REQUEST,true), LOGGER_DATA);
+ // logger('postvars ' . print_r($_REQUEST,true), LOGGER_DATA);
$api_source = ((x($_REQUEST,'api_source') && $_REQUEST['api_source']) ? true : false);
diff --git a/mod/thing.php b/mod/thing.php
index d3b47ebb9..9b362cecd 100644
--- a/mod/thing.php
+++ b/mod/thing.php
@@ -9,6 +9,9 @@ function thing_init(&$a) {
if(! local_user())
return;
+
+
+
$account_id = $a->get_account();
$channel = $a->get_channel();
@@ -16,7 +19,7 @@ function thing_init(&$a) {
$name = escape_tags($_REQUEST['term']);
$verb = escape_tags($_REQUEST['verb']);
- $profile_guid = escape_tags($_REQUEST['profile']);
+ $profile_guid = escape_tags($_REQUEST['profile_assign']);
$url = $_REQUEST['link'];
$photo = $_REQUEST['img'];
@@ -99,6 +102,7 @@ function thing_init(&$a) {
$p = q("select profile_guid, is_default from profile where uid = %d $sql limit 1",
intval(local_user())
);
+
if($p)
$profile = $p[0];
else
@@ -209,7 +213,6 @@ function thing_init(&$a) {
}
$ret = post_activity_item($arr);
-
}