global $language is an object and not an array

yhager - May 9, 2008 - 07:55
Project:Documentation
Component:Developer Guide
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

According to http://api.drupal.org/api/global/language/6, the $language global is an array, but in reality, it is an object, whose structure is taken from the languages table structure.

 
 

Drupal is a registered trademark of Dries Buytaert.