added much more curly braces + space between "if" and brace
Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
parent
51d352922a
commit
e24c3a5b82
50 changed files with 224 additions and 164 deletions
|
|
@ -392,8 +392,9 @@ function construct_acl_data(&$a, $user) {
|
|||
|
||||
function acl_lookup(&$a, $out_type = 'json') {
|
||||
|
||||
if(!local_user())
|
||||
return "";
|
||||
if (!local_user()) {
|
||||
return '';
|
||||
}
|
||||
|
||||
$start = (x($_REQUEST,'start') ? $_REQUEST['start'] : 0);
|
||||
$count = (x($_REQUEST,'count') ? $_REQUEST['count'] : 100);
|
||||
|
|
|
|||
|
|
@ -80,11 +80,13 @@ function networks_widget($baseurl,$selected = '') {
|
|||
|
||||
$a = get_app();
|
||||
|
||||
if(!local_user())
|
||||
if (!local_user()) {
|
||||
return '';
|
||||
}
|
||||
|
||||
if(!feature_enabled(local_user(),'networks'))
|
||||
if (!feature_enabled(local_user(),'networks')) {
|
||||
return '';
|
||||
}
|
||||
|
||||
$extra_sql = unavailable_networks();
|
||||
|
||||
|
|
@ -116,15 +118,18 @@ function networks_widget($baseurl,$selected = '') {
|
|||
}
|
||||
|
||||
function fileas_widget($baseurl,$selected = '') {
|
||||
if(! local_user())
|
||||
if (! local_user()) {
|
||||
return '';
|
||||
}
|
||||
|
||||
if(! feature_enabled(local_user(),'filing'))
|
||||
if (! feature_enabled(local_user(),'filing')) {
|
||||
return '';
|
||||
}
|
||||
|
||||
$saved = get_pconfig(local_user(),'system','filetags');
|
||||
if(! strlen($saved))
|
||||
if (! strlen($saved)) {
|
||||
return;
|
||||
}
|
||||
|
||||
$matches = false;
|
||||
$terms = array();
|
||||
|
|
|
|||
|
|
@ -234,7 +234,7 @@ function group_side($every="contacts",$each="group",$editmode = "standard", $gro
|
|||
|
||||
$o = '';
|
||||
|
||||
if(! local_user())
|
||||
if (! local_user())
|
||||
return '';
|
||||
|
||||
$groups = array();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue