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);
}
}
'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')),
),
);
$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 {