On line 87, language_default() returns an empty value when a user is trying to register.

Comments

kars-t’s picture

Assigned: Unassigned » kars-t
Status: Active » Postponed (maintainer needs more info)

Hi
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 ;)

2c’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Sorry, 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.