Upper and Lowercase from Api pgroup() are wrong
LadyCailinBot opened this issue ยท 3 comments
CMDHELPER-2917 - Reported by Mario
Upper and Lowercase Letters from Api pgroup() are wrong.
It makes a lot of problems when you want to find the right Groupname for the Script in an associative array with the right group names.
Comment by ACzChef
The problem here is that pgroup() returns all the groups but lower cased. When used with external things like CHPex the group names are not matching up, and causing errors.
Comment by PseudoKnight
I assumed this was intentional until a recent bug report. It's extremely unlikely that you have two groups of the same name with different cases. It's simple to work with, as well. You can use array_contains_ic() or to_lower() when working with group names. If this is changed, I may have to fix some lines in my scripts, but that's easy enough.