$o .= '</div>';
$o .= '</div>' . "\r\n";
$o .= '<div id="acl-wrapper-end"></div>' . "\r\n";*/
-
+
- // Not totally sure what input values can come
- // This is a hotfix to prevent massive php warnings
- if (is_array($user) AND isset($user["uid"]))
- $uid = $user["uid"];
- else
- $uid = intval($user);
-
$tpl = get_markup_template("acl_selector.tpl");
$o = replace_macros($tpl, array(
'$showall'=> t("Visible to everybody"),
'$denycid' => json_encode($perms['deny_cid']),
'$denygid' => json_encode($perms['deny_gid']),
'$features' => array(
- "aclautomention"=>(feature_enabled($uid,"aclautomention")?"true":"false")
+ "aclautomention"=>(feature_enabled($user['uid'],"aclautomention")?"true":"false")
),
));
-
-
+
+
return $o;
}