Index: trunk/CHANGELOG
===================================================================
--- trunk/CHANGELOG	(revision 612)
+++ trunk/CHANGELOG	(revision 613)
@@ -10,13 +10,15 @@
 # = Bugfix
 ! = Update/Change
 
-------------------------------------- 2.7.0 -------------------------------------
+------------------------------------- 2.7.0 -------------------------------------
+27-Jan-2008 Christian Sommer
+#	added default language for users to avoid empty language fields
 27-Jan-2008 Matthias Gallas
 #	Fixed some spelling errors in german language file
-27-Jan-2008 Thomas Hornik
-#	Module form: dropdown "success page" listed foreign private pages, too. Fixed.
-+	Added preview-images for CAPTCHA.
-!	Improved security: CAPTCHAS can't be loaded from outside WB
+27-Jan-2008 Thomas Hornik
+#	Module form: dropdown "success page" listed foreign private pages, too. Fixed.
++	Added preview-images for CAPTCHA.
+!	Improved security: CAPTCHAS can't be loaded from outside WB
 !	CAPTCHA ttf_image: added variant. Adjusted character-pool and one background for better readability.
 26-Jan-2008 Christian Sommer
 !	changed WYSIWYG content field from text to longtext (allows more than 65'534 characters) 
@@ -26,9 +28,9 @@
 +	Added new language files
 +	Added keywords to files where they are missing
 26-Jan-2008 Thomas Hornik
-!	fixed some issues with CAPTCHA and ASP. Adjusted baseline of '*' in supplyed fonts to meet
-	baseline of numbers. Added counter to ttf_image generation-loop. Removed now unneeded GD-lib verification.
-	Improved ASP in news-module.
+!	fixed some issues with CAPTCHA and ASP. Adjusted baseline of '*' in supplyed fonts to meet
+	baseline of numbers. Added counter to ttf_image generation-loop. Removed now unneeded GD-lib verification.
+	Improved ASP in news-module.
 +	module news: added publish_until field to control the visibility of a news-posting by date and time
 !	added strongly "condensed" fonts with many intersections for ttf-CAPTCHA as default fonts.
 	It should be very difficult for spam-bots to recognize intersected characters.
Index: trunk/wb/admin/users/add.php
===================================================================
--- trunk/wb/admin/users/add.php	(revision 612)
+++ trunk/wb/admin/users/add.php	(revision 613)
@@ -41,6 +41,7 @@
 $display_name = $admin->get_post('display_name');
 $email = $admin->get_post('email');
 $home_folder = $admin->get_post('home_folder');
+$default_language = DEFAULT_LANGUAGE;
 
 // Create a javascript back link
 $js_back = "javascript: history.go(-1);";
@@ -84,7 +85,7 @@
 $md5_password = md5($password);
 
 // Inser the user into the database
-$query = "INSERT INTO ".TABLE_PREFIX."users (groups_id,active,username,password,display_name,home_folder,email,timezone) VALUES ('$groups_id', '$active', '$username','$md5_password','$display_name','$home_folder','$email','-72000')";
+$query = "INSERT INTO ".TABLE_PREFIX."users (groups_id,active,username,password,display_name,home_folder,email,timezone, language) VALUES ('$groups_id', '$active', '$username','$md5_password','$display_name','$home_folder','$email','-72000', '$default_language')";
 $database->query($query);
 if($database->is_error()) {
 	$admin->print_error($database->get_error());
Index: trunk/wb/install/save.php
===================================================================
--- trunk/wb/install/save.php	(revision 612)
+++ trunk/wb/install/save.php	(revision 613)
@@ -473,7 +473,7 @@
 	       . ' `timezone` INT NOT NULL DEFAULT \'0\','
 	       . ' `date_format` VARCHAR( 255 ) NOT NULL DEFAULT \'\' ,'
 	       . ' `time_format` VARCHAR( 255 ) NOT NULL DEFAULT \'\' ,'
-	       . ' `language` VARCHAR( 5 ) NOT NULL DEFAULT \'\' ,'
+	       . ' `language` VARCHAR( 5 ) NOT NULL DEFAULT \'EN\' ,'
 	       . ' `home_folder` TEXT NOT NULL ,'
 	       . ' `login_when` INT NOT NULL  DEFAULT \'0\','
 	       . ' `login_ip` VARCHAR( 15 ) NOT NULL DEFAULT \'\' ,'
