From a12f6c16cc6e51cc8b3d02dfde9db3a028219199 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Sun, 30 Dec 2007 23:41:58 +0000 Subject: [PATCH] Minor adjustments in function db_export on line 325 --- CHANGELOG.txt | 6 +++++- admin/db/maintenance_db.inc | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 2c3c3559..d2ca9fba 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -19,8 +19,12 @@ Legend: ! -> Note $ -> Affected files +30-Dec-2007 Joe Hunt + # Minor adjustments in function db_export on line 325 + $ /admin/db/maintenance_db.inc + 29-Dec-2007 Joe Hunt - ! Added a variable, $print_invoice_no, in config.sys for printing the invoice number instead of invoice reference. + ! Added a variable, $print_invoice_no, in config.php for printing the invoice number instead of invoice reference. $ config.php # Fixed a bug when exporting database. Exported NULL field values from NO to empty field (from mysql version 5.0.32). diff --git a/admin/db/maintenance_db.inc b/admin/db/maintenance_db.inc index 840b493b..fdbd51bf 100644 --- a/admin/db/maintenance_db.inc +++ b/admin/db/maintenance_db.inc @@ -321,7 +321,9 @@ function db_export($conn, $filename, $zip='no', $comment='') $all_tables = array(); while($row = db_fetch($res)) { - if ($conn["tbpref"] == "" || strpos($row['Name'], $conn["tbpref"]) !== false) + //if ($conn["tbpref"] == "" || strpos($row['Name'], $conn["tbpref"]) !== false) replaced + if (($conn["tbpref"] == "" && !preg_match('/[0-9]+_/', $row['Name'])) || + ($conn["tbpref"] != "" && strpos($row['Name'], $conn["tbpref"]) !== false)) $all_tables[] = $row; } // get table structures -- 2.30.2