Locale exists() behaves wrong/weird
https://dev.quiqqer.com/quiqqer/quiqqer/blob/master/lib/QUI/Locale.php#L385
I want to call exists()
to check if a locale variable is there but has no value for a language.
E.g:
mylocale.dog:
de: Hund
en: dog
fr: null
If I call exists()
for dog with a french locale now, I would expect that exists()
returns false
.
I checked the function and there seems to be some logic for that: https://dev.quiqqer.com/quiqqer/quiqqer/blob/master/lib/QUI/Locale.php#L399
But apparently the $str
variable (line 387) is an empty string, therefore the check on line 399 fails and true is returned.