diff --git a/inc/lib_config.php b/inc/lib_config.php
index 77fd68a189e2fac4340f20a2650fba276e568eab..cbf86b17aa1f0975804d16d613bfbfd3aaf1dc92 100755
--- a/inc/lib_config.php
+++ b/inc/lib_config.php
@@ -193,6 +193,7 @@ class OC_CONFIG{
 							$CONFIG_DBPASSWORD=$_POST['dbpassword'];
 						}else{
 							$_POST['dbtableprefix']='';
+							$CONFIG_DBTABLEPREFIX='';
 						}
 						try{
 							if(isset($_POST['createdatabase']) and $CONFIG_DBTYPE!='sqlite'){