X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Ffeatures.php;h=340394ecea36f275860877378e9c01ed74593886;hb=59ae5633ec9080845a02de99665293655bd8b726;hp=3ef007cd6111cec0ae3c4d28940bc4aeaab1f2c7;hpb=0dfa57948f152a90a4d8093419a2ea5ced07349c;p=friendica.git diff --git a/include/features.php b/include/features.php index 3ef007cd61..340394ecea 100644 --- a/include/features.php +++ b/include/features.php @@ -16,11 +16,11 @@ use Friendica\Core\PConfig; function feature_enabled($uid, $feature) { $x = Config::get('feature_lock', $feature); - if ($x === false) { + if (is_null($x)) { $x = PConfig::get($uid, 'feature', $feature); - if ($x === false) { + if (is_null($x)) { $x = Config::get('feature', $feature); - if ($x === false) { + if (is_null($x)) { $x = get_feature_default($feature); } } @@ -114,6 +114,7 @@ function get_features($filtered = true) { 'advanced_profile' => array( t('Advanced Profile Settings'), array('forumlist_profile', t('List Forums'), t('Show visitors public community forums at the Advanced Profile Page'), false, Config::get('feature_lock','forumlist_profile')), + array('tagadelic', t('Tag Cloud'), t('Provide a personal tag cloud on your profile page'), false, Config::get('feature_lock', 'tagadelic')), ), ); @@ -125,7 +126,7 @@ function get_features($filtered = true) { $kquantity = count($arr[$k]); for ($y = 0; $y < $kquantity; $y ++) { if (is_array($arr[$k][$y])) { - if ($arr[$k][$y][4] === false) { + if (is_null($arr[$k][$y][4])) { $has_items = true; } else {