mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 04:05:16 +02:00
more spaces + some curly spaces added
Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
parent
41a36606c6
commit
951006dd10
42 changed files with 206 additions and 187 deletions
|
@ -36,8 +36,8 @@ function feature_enabled($uid, $feature) {
|
|||
*/
|
||||
function get_feature_default($feature) {
|
||||
$f = get_features();
|
||||
foreach($f as $cat) {
|
||||
foreach($cat as $feat) {
|
||||
foreach ($f as $cat) {
|
||||
foreach ($cat as $feat) {
|
||||
if (is_array($feat) && $feat[0] === $feature)
|
||||
return $feat[3];
|
||||
}
|
||||
|
@ -117,10 +117,10 @@ function get_features($filtered = true) {
|
|||
// removed any locked features and remove the entire category if this makes it empty
|
||||
|
||||
if ($filtered) {
|
||||
foreach($arr as $k => $x) {
|
||||
foreach ($arr as $k => $x) {
|
||||
$has_items = false;
|
||||
$kquantity = count($arr[$k]);
|
||||
for($y = 0; $y < $kquantity; $y ++) {
|
||||
for ($y = 0; $y < $kquantity; $y ++) {
|
||||
if (is_array($arr[$k][$y])) {
|
||||
if ($arr[$k][$y][4] === false) {
|
||||
$has_items = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue