Index: trunk/CHANGELOG
===================================================================
--- trunk/CHANGELOG	(revision 531)
+++ trunk/CHANGELOG	(revision 532)
@@ -12,6 +12,9 @@
 
 ------------------------------------- 2.7.0 -------------------------------------
 13-Jan-2008 Christian Sommer
+#	this bugfix closes ticket 412 (direct call of admin/settings/save.php clears database)
+
+13-Jan-2008 Christian Sommer
 #	fixed error with redirection to admin panel after installation
 
 12-Jan-2008 Christian Sommer
Index: trunk/wb/admin/settings/save.php
===================================================================
--- trunk/wb/admin/settings/save.php	(revision 531)
+++ trunk/wb/admin/settings/save.php	(revision 532)
@@ -23,6 +23,9 @@
 
 */
 
+// prevent this file from being accessed directly in the browser (would set all entries in DB settings table to '')
+if(!isset($_POST['default_language']) || $_POST['default_language'] == '') die("Cannot access this file directly");  
+
 // Find out if the user was view advanced options or not
 if($_POST['advanced'] == 'yes' ? $advanced = '?advanced=yes' : $advanced = '');
 
