Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I managed to provoke this error:
http://emberapp.com/mikl/images/admin-language-error
It seems to be because I have the admin language variable set to a language that's not currently available.
I'll just throw together a patch to prevent this issue :)
Comment | File | Size | Author |
---|---|---|---|
#1 | 2009-10-29-currently-array.patch | 2.41 KB | mikl |
Comments
Comment #1
mikl CreditAttribution: mikl commentedIt also occurs when the admin_language is not set and the english language is not enabled.
Anyway, here's a patch for it.
I also threw in the missing return value from admin_language_update_6101()
that caused the error messages mentioned in #617040: Enable language for admins only?.
Comment #2
wulff CreditAttribution: wulff commentedPatch looks good. I'll include it in the next release of the module.