get_feature_default() was using filtered view, preventing it from working in all cases

This commit is contained in:
redmatrix 2016-02-19 13:34:29 -08:00
parent 8e586008dd
commit 3f0eb84ecf

View File

@ -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)