Moving tax_included to sales_types,changed coinstraint for tax type name,
[fa-stable.git] / admin / db / maintenance_db.inc
index 0a710e34a409e032db4153bbaab5dc78fb12fba9..7520e359979d20759f852b120f471bdcd4ace52b 100644 (file)
@@ -160,8 +160,10 @@ function db_import($filename, $connection)
                {
 
                        // create sql query ending in this line
-                       if (strtolower(substr($line, 0, 1)) == ")")
+                       if (strtolower(substr($line, 0, 1)) == ")") {
                                $table = false;
+                               $line = substr($line,0,strlen($line)-1);
+                 }
                        $table_queries[count($table_queries) - 1] .= $line . "\n";
                }
        }