diff --git a/include/like.php b/include/like.php index 893047da3c..210bde6906 100644 --- a/include/like.php +++ b/include/like.php @@ -112,8 +112,9 @@ function do_like($item_id, $verb) { intval($_SESSION['visitor_id']), intval($owner_uid) ); - if (dbm::is_result($r)) + if (dbm::is_result($r)) { $contact = $r[0]; + } } if (! $contact) { return false; diff --git a/mod/subthread.php b/mod/subthread.php index a00196825b..c689f7f6cb 100644 --- a/mod/subthread.php +++ b/mod/subthread.php @@ -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)