get_feature_default() was using filtered view, preventing it from working in all cases
This commit is contained in:
parent
8e586008dd
commit
3f0eb84ecf
@ -25,7 +25,7 @@ function feature_enabled($uid,$feature) {
|
||||
}
|
||||
|
||||
function get_feature_default($feature) {
|
||||
$f = get_features();
|
||||
$f = get_features(false);
|
||||
foreach($f as $cat) {
|
||||
foreach($cat as $feat) {
|
||||
if(is_array($feat) && $feat[0] === $feature)
|
||||
|
Reference in New Issue
Block a user