added much more curly braces + space between "if" and brace

Signed-off-by: Roland Häder <roland@mxchange.org>

Conflicts:
	mod/bookmarklet.php
	mod/community.php
	mod/contacts.php
	mod/crepair.php
	mod/events.php
	mod/network.php
	mod/suggest.php
	mod/uexport.php
	view/theme/duepuntozero/config.php
	view/theme/frio/config.php
	view/theme/quattro/config.php
	view/theme/vier/config.php
This commit is contained in:
Roland Häder 2016-12-20 11:56:34 +01:00
parent 5f41375ad3
commit ace8f753ac
50 changed files with 225 additions and 165 deletions

View file

@ -21,25 +21,29 @@ require_once('include/items.php');
function poke_init(&$a) {
if(! local_user())
if (! local_user()) {
return;
}
$uid = local_user();
$verb = notags(trim($_GET['verb']));
if(! $verb)
if (! $verb) {
return;
}
$verbs = get_poke_verbs();
if(! array_key_exists($verb,$verbs))
if (! array_key_exists($verb,$verbs)) {
return;
}
$activity = ACTIVITY_POKE . '#' . urlencode($verbs[$verb][0]);
$contact_id = intval($_GET['cid']);
if(! $contact_id)
if (! $contact_id) {
return;
}
$parent = ((x($_GET,'parent')) ? intval($_GET['parent']) : 0);
@ -146,7 +150,7 @@ function poke_init(&$a) {
function poke_content(&$a) {
if(! local_user()) {
if (! local_user()) {
notice( t('Permission denied.') . EOL);
return;
}