Coding convention applied:
- space between "if" and brace - curly braces on conditional blocks Signed-off-by: Roland Häder <roland@mxchange.org> Conflicts: include/lock.php
This commit is contained in:
parent
884f44ce94
commit
abff6372dd
53 changed files with 118 additions and 87 deletions
|
|
@ -36,9 +36,9 @@ function auto_redir(&$a, $contact_nick) {
|
|||
dbesc($nurl)
|
||||
);
|
||||
|
||||
if((! dbm::is_result($r)) || $r[0]['id'] == remote_user())
|
||||
if ((! dbm::is_result($r)) || $r[0]['id'] == remote_user()) {
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
$r = q("SELECT * FROM contact WHERE nick = '%s'
|
||||
AND network = '%s' AND uid = %d AND url LIKE '%%%s%%' LIMIT 1",
|
||||
|
|
@ -48,8 +48,9 @@ function auto_redir(&$a, $contact_nick) {
|
|||
dbesc($baseurl)
|
||||
);
|
||||
|
||||
if(! dbm::is_result($r))
|
||||
if (! dbm::is_result($r)) {
|
||||
return;
|
||||
}
|
||||
|
||||
$cid = $r[0]['id'];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue