From ab4058eb1ab977b5d4d572d609f86bc888c92c63 Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 23 Mar 2013 16:03:08 -0700 Subject: rev update --- mod/subthread.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mod/subthread.php') 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) ); -- cgit v1.2.3