Browse Source

bugfix of language inclusion in event lib

Noël Dieschburg 14 years ago
parent
commit
72ff33793f
1 changed files with 6 additions and 1 deletions
  1. 6 1
      main/inc/lib/events.lib.inc.php

+ 6 - 1
main/inc/lib/events.lib.inc.php

@@ -13,7 +13,12 @@
 * @todo convert queries to use Database API
 */
 /*	   INIT SECTION */
-$language_file[] = 'events';
+if (is_array($language_file)) { 
+	$language_file[] = 'events';
+}
+else {
+	$language_file = array($laguage_file, 'events');
+}
 
 // REGROUP TABLE NAMES FOR MAINTENANCE PURPOSE
 $TABLETRACK_LOGIN 		= $_configuration['statistics_database'].".track_e_login";