Index: i18n.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/i18n/i18n.module,v
retrieving revision 1.42
diff -u -p -r1.42 i18n.module
--- i18n.module	19 Jun 2008 08:28:21 -0000	1.42
+++ i18n.module	19 Jun 2008 08:30:45 -0000
@@ -254,7 +254,7 @@ function i18n_user($op, &$edit, &$accoun
  */
 function i18n_language_property($code, $property) {
   $languages = language_list();
-  return isset($languages[$code][$property]) ? $languages[$code][$property] : NULL;
+  return isset($languages[$code]->$property) ? $languages[$code]->$property : NULL;
 }
 
 /**
@@ -777,4 +777,4 @@ function _i18n_content_language_options(
     LANGUAGE_SUPPORT_NORMAL => t('Normal - All enabled languages will be allowed.'),
     LANGUAGE_SUPPORT_EXTENDED => t('Extended - All defined languages will be allowed.')
   );
-}
\ No newline at end of file
+}
