added curly braces/spaces + replace spaces with tabs to fix code indending (or so?)

Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2016-12-21 23:04:09 +01:00
commit d3e666f71a
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78
7 changed files with 88 additions and 91 deletions

View file

@ -88,20 +88,19 @@ function dirfind_content(&$a, $prefix = "") {
if (get_config('system','diaspora_enabled')) {
$diaspora = NETWORK_DIASPORA;
}
else {
} else {
$diaspora = NETWORK_DFRN;
}
if (!get_config('system','ostatus_disabled')) {
$ostatus = NETWORK_OSTATUS;
}
else {
} else {
$ostatus = NETWORK_DFRN;
}
$search2 = "%".$search."%";
/// @TODO These 2 SELECTs are not checked on validity with dbm::is_result()
$count = q("SELECT count(*) AS `total` FROM `gcontact`
LEFT JOIN `contact` ON `contact`.`nurl` = `gcontact`.`nurl`
AND `contact`.`network` = `gcontact`.`network`
@ -200,8 +199,7 @@ function dirfind_content(&$a, $prefix = "") {
$photo_menu = contact_photo_menu($contact[0]);
$details = _contact_detail_for_template($contact[0]);
$alt_text = $details['alt_text'];
}
else {
} else {
$photo_menu = array();
}
} else {
@ -243,8 +241,7 @@ function dirfind_content(&$a, $prefix = "") {
'$paginate' => paginate($a),
));
}
else {
} else {
info( t('No matches') . EOL);
}