X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fsubthread.php;h=646a4230c5f486819100624ddf754231b52814d1;hb=325d3afe183a397ea6688480c1b2df8e1be99dc1;hp=a00196825bbe4dfb09bfb0be837f9093f8d9c45a;hpb=536f078ed4993d645739f7989b760ddfeb0c6743;p=friendica.git diff --git a/mod/subthread.php b/mod/subthread.php index a00196825b..646a4230c5 100644 --- a/mod/subthread.php +++ b/mod/subthread.php @@ -5,7 +5,7 @@ require_once('include/bbcode.php'); require_once('include/items.php'); -function subthread_content(App &$a) { +function subthread_content(App $a) { if(! local_user() && ! remote_user()) { return; @@ -49,7 +49,7 @@ function subthread_content(App &$a) { } } - // this represents the post owner on this system. + // this represents the post owner on this system. $r = q("SELECT `contact`.*, `user`.`nickname` FROM `contact` LEFT JOIN `user` ON `contact`.`uid` = `user`.`uid` WHERE `contact`.`self` = 1 AND `contact`.`uid` = %d LIMIT 1", @@ -71,8 +71,7 @@ function subthread_content(App &$a) { if ((local_user()) && (local_user() == $owner_uid)) { $contact = $owner; - } - else { + } else { $r = q("SELECT * FROM `contact` WHERE `id` = %d AND `uid` = %d LIMIT 1", intval($_SESSION['visitor_id']), intval($owner_uid)