Closed (fixed)
Project:
Registration Language
Version:
6.x-1.5
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Reporter:
Created:
12 Mar 2009 at 12:34 UTC
Updated:
12 Mar 2009 at 12:49 UTC
On line 87, language_default() returns an empty value when a user is trying to register.
Comments
Comment #1
kars-t commentedHi
thanks for the input.
http://api.drupal.org/api/function/language_default/6
Bascially this should be impossible and always return an object.
How is your Drupal set up?
Do you have mulitple languages active or just one?
If one is it english?
I will have to write a unit test to finally stop all my stupid bugs and reset my drupal to test everything I can think of but as always this will take some time.
Curious bug ;)
Comment #2
2c commentedSorry, this is my mistake. I was using
drupal_set_message($language);expecting to get the default language. $language is an object, so $language->language works as expected.
Thanks for your help.