Closed UziTech closed 1 year ago
also getting Undefined offset: 0
in php error logs from get_user_all.php#L83
Looks like it is because technically there are 2 functions with the same name which should usually be an error but in this case is valid PHP
Found a weird bug.
When two classes are defined in the same file and the second one's constructor has no parameters the
@userSuggestions.user_functions[1].text === null
which causes an error at povider.coffee#L167@userSuggestions.user_functions is
I fixed it by changing
userFunc.text.toLowerCase().indexOf(lowerCasePrefix)
touserFunc.text?.toLowerCase().indexOf(lowerCasePrefix)
but there is probably some underlying bug that should be fixed.