2
0
forked from Wavyzz/dolibarr

Fix not initialized variables

This commit is contained in:
Laurent Destailleur
2016-05-08 12:32:18 +02:00
parent 5cf8612c58
commit 7c3c8f70be
5 changed files with 17 additions and 232 deletions

View File

@@ -318,7 +318,7 @@ function backup_tables($outputfile, $tables='*')
$columns = count($row);
for($j=0; $j<$columns; $j++) {
// Processing each columns of the row to ensure that we correctly save the value (eg: add quotes for string - in fact we add quotes for everything, it's easier)
if ($row[$j] == null and !is_string($row[$j])) {
if ($row[$j] == null && !is_string($row[$j])) {
// IMPORTANT: if the field is NULL we set it NULL
$row[$j] = 'NULL';
} elseif(is_string($row[$j]) && $row[$j] == '') {