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:
parent
13b57d4d50
commit
97c507e763
|
@ -112,9 +112,10 @@ function do_like($item_id, $verb) {
|
||||||
intval($_SESSION['visitor_id']),
|
intval($_SESSION['visitor_id']),
|
||||||
intval($owner_uid)
|
intval($owner_uid)
|
||||||
);
|
);
|
||||||
if (dbm::is_result($r))
|
if (dbm::is_result($r)) {
|
||||||
$contact = $r[0];
|
$contact = $r[0];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (! $contact) {
|
if (! $contact) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,8 +71,7 @@ function subthread_content(App &$a) {
|
||||||
|
|
||||||
if ((local_user()) && (local_user() == $owner_uid)) {
|
if ((local_user()) && (local_user() == $owner_uid)) {
|
||||||
$contact = $owner;
|
$contact = $owner;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
$r = q("SELECT * FROM `contact` WHERE `id` = %d AND `uid` = %d LIMIT 1",
|
$r = q("SELECT * FROM `contact` WHERE `id` = %d AND `uid` = %d LIMIT 1",
|
||||||
intval($_SESSION['visitor_id']),
|
intval($_SESSION['visitor_id']),
|
||||||
intval($owner_uid)
|
intval($owner_uid)
|
||||||
|
|
Loading…
Reference in a new issue