Coding convention applied:

- space between "if" and brace
- curly braces on conditional blocks

Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2016-12-20 10:10:33 +01:00 committed by Roland Haeder
parent 13b57d4d50
commit 97c507e763
No known key found for this signature in database
GPG Key ID: B72F8185C6C7BD78
2 changed files with 3 additions and 3 deletions

View 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;

View 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)