X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Ffeatures.php;h=07dcced0e6da630b1142f9112f080a68b8843d19;hb=0541a62134e8af948f0e4c713a42ca70eaa64f3f;hp=c49680cb87cea167dfcaea799ea05ee121b6cf21;hpb=41a36606c6ee92c914acbb7f6d9ea79c0a149088;p=friendica.git diff --git a/include/features.php b/include/features.php index c49680cb87..07dcced0e6 100644 --- a/include/features.php +++ b/include/features.php @@ -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;