I believe the right translation here would be "inherent", as you mean that it automatically checks for the current forum's perms based on where you call it?
3Di wrote: ↑Sat Nov 24, 2018 3:30 pm
Code: Select all
$admin_ary = (!empty($admin_ary[0]['a_'])) ? $admin_ary[0]['a_'] : [];
...
$mod_ary = (!empty($mod_ary[0]['m_'])) ? $mod_ary[0]['m_'] : [];
Edit: this function is meant to be used in other circumstancies, see below.
Wouldn't this check only the first member of the admin/mod array though, ignoring all of the others in the list? Also which circumstance should that one be used?
@GangstaZ I'll benchmark yours, mine, and 3Di's in a bit to see which is faster, I'm guessing either yours or 3Di's are the same or one is sliiiiightly better.