Index: inc/functions.inc.php
===================================================================
RCS file: /cvsroot/phpgwapi/phpgwapi/inc/functions.inc.php,v
retrieving revision 1.121.2.13.2.22
diff -u -r1.121.2.13.2.22 functions.inc.php
--- inc/functions.inc.php       6 Nov 2004 15:34:26 -0000       1.121.2.13.2.22
+++ inc/functions.inc.php       24 Mar 2005 17:13:10 -0000
@@ -271,6 +271,12 @@
 				$GLOBALS['phpgw']->preferences->preferences($login_id);
 				$GLOBALS['phpgw']->datetime = CreateObject('phpgwapi.datetime');
 			}
+			else
+                       {
+                               //choose default options for login screen.  currently only the lang is used
+                               $GLOBALS['phpgw']->preferences->preferences(0);
+                               $GLOBALS['phpgw']->preferences->read();
+			}
 		}
 	/**************************************************************************\
 	* Everything from this point on will ONLY happen if                        *
