Browse Source
Coding convention applied:
- space between "if" and brace
- curly braces on conditional blocks
Signed-off-by: Roland Häder <roland@mxchange.org>
pull/3043/head
Roland Häder
4 years ago
committed by
Roland Haeder
No known key found for this signature in database
GPG Key ID: B72F8185C6C7BD78
2 changed files with
3 additions and
3 deletions
-
include/like.php
-
mod/subthread.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; |
|
|
|
|
|
@ -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) |
|
|
|