projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New inventory sales report. Shows total sales - costs - contribution per category...
[fa-stable.git]
/
admin
/
db
/
maintenance_db.inc
diff --git
a/admin/db/maintenance_db.inc
b/admin/db/maintenance_db.inc
index 4907366693dd5ec65069b4bc1eb09245be0e4c1b..444ac100d2f3cc72b0f32f2827dab98578e9742f 100644
(file)
--- a/
admin/db/maintenance_db.inc
+++ b/
admin/db/maintenance_db.inc
@@
-411,11
+411,7
@@
function db_export($conn, $filename, $zip='no', $comment='')
// run through each field
for ($k = 0; $k < $nf = db_num_fields($res2); $k++)
{
// run through each field
for ($k = 0; $k < $nf = db_num_fields($res2); $k++)
{
- // identify null values and save them as null instead of ''
- if ($field_type[$k] != "" && $field_type[$k] != "NO" && $row2[$k] == "")
- $out .= "NULL";
- else
- $out .= "'" . db_escape($row2[$k]) . "'";
+ $out .= db_escape($row2[$k]);
if ($k < ($nf - 1))
$out .= ", ";
}
if ($k < ($nf - 1))
$out .= ", ";
}