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
parent
commit
97c507e763
No known key found for this signature in database GPG Key ID: B72F8185C6C7BD78
2 changed files with 3 additions and 3 deletions
  1. +2
    -1
      include/like.php
  2. +1
    -2
      mod/subthread.php

+ 2
- 1
include/like.php 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;


+ 1
- 2
mod/subthread.php 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)


Loading…
Cancel
Save