aboutsummaryrefslogtreecommitdiffstats
path: root/mod/subthread.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-03-23 16:03:08 -0700
committerfriendica <info@friendica.com>2013-03-23 16:03:08 -0700
commitab4058eb1ab977b5d4d572d609f86bc888c92c63 (patch)
tree394ad4f8bb6ac55eb9e4fe1a7ed29a3d823c5f53 /mod/subthread.php
parent0999b88a486b2b392bf3b785d3da7ea1652ab1c2 (diff)
downloadvolse-hubzilla-ab4058eb1ab977b5d4d572d609f86bc888c92c63.tar.gz
volse-hubzilla-ab4058eb1ab977b5d4d572d609f86bc888c92c63.tar.bz2
volse-hubzilla-ab4058eb1ab977b5d4d572d609f86bc888c92c63.zip
rev update
Diffstat (limited to 'mod/subthread.php')
-rwxr-xr-xmod/subthread.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/subthread.php b/mod/subthread.php
index cde8b3093..c91052395 100755
--- a/mod/subthread.php
+++ b/mod/subthread.php
@@ -7,15 +7,15 @@ require_once('include/items.php');
function subthread_content(&$a) {
- if(! local_user() && ! remote_user()) {
+ if((! local_user()) && (! remote_user())) {
return;
}
$activity = ACTIVITY_FOLLOW;
- $item_id = (($a->argc > 1) ? notags(trim($a->argv[1])) : 0);
+ $item_id = ((argc() > 1) ? notags(trim(argv(1))) : 0);
- $r = q("SELECT * FROM `item` WHERE `parent` = '%s' OR `parent-mid` = '%s' and parent = id LIMIT 1",
+ $r = q("SELECT * FROM `item` WHERE `parent` = '%s' OR `parent_mid` = '%s' and parent = id LIMIT 1",
dbesc($item_id),
dbesc($item_id)
);