]> git.mxchange.org Git - friendica.git/commitdiff
Coding convention applied:
authorRoland Häder <roland@mxchange.org>
Tue, 20 Dec 2016 09:10:33 +0000 (10:10 +0100)
committerRoland Haeder <roland@mxchange.org>
Fri, 23 Dec 2016 18:49:15 +0000 (19:49 +0100)
- space between "if" and brace
- curly braces on conditional blocks

Signed-off-by: Roland Häder <roland@mxchange.org>
include/like.php
mod/subthread.php

index 893047da3c252f9d6216c4271f87735d9b162f26..210bde690656e84e777c0b6771dc6ee57f867939 100644 (file)
@@ -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;
index a00196825bbe4dfb09bfb0be837f9093f8d9c45a..c689f7f6cb57c50e089212e12cc784a8b3aba53a 100644 (file)
@@ -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)