mirror of
https://github.com/friendica/friendica
synced 2025-04-26 18:30:11 +00:00
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
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue