diff options
author | friendica <info@friendica.com> | 2013-03-23 16:03:08 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-03-23 16:03:08 -0700 |
commit | ab4058eb1ab977b5d4d572d609f86bc888c92c63 (patch) | |
tree | 394ad4f8bb6ac55eb9e4fe1a7ed29a3d823c5f53 /mod/subthread.php | |
parent | 0999b88a486b2b392bf3b785d3da7ea1652ab1c2 (diff) | |
download | volse-hubzilla-ab4058eb1ab977b5d4d572d609f86bc888c92c63.tar.gz volse-hubzilla-ab4058eb1ab977b5d4d572d609f86bc888c92c63.tar.bz2 volse-hubzilla-ab4058eb1ab977b5d4d572d609f86bc888c92c63.zip |
rev update
Diffstat (limited to 'mod/subthread.php')
-rwxr-xr-x | mod/subthread.php | 6 |
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) ); |