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 5 years ago
committed by Roland Haeder
parent
commit
97c507e763
No known key found for this signature in database GPG Key ID: B72F8185C6C7BD78
  1. 3
      include/like.php
  2. 3
      mod/subthread.php

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

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

Loading…
Cancel
Save