patch #2816713, fix for PHP array export: NULL values not correctly dumped

This commit is contained in:
Marc Delisle
2009-07-06 12:18:39 +00:00
parent ab91034de2
commit d9c6e3b345

View File

@@ -3,7 +3,7 @@
* Set of functions used to build dumps of tables as PHP Arrays
*
* @author Geoffray Warnants <http://www.geoffray.be>
* @version 0.1b (20090610)
* @version 0.2b (20090704)
*/
if (! defined('PHPMYADMIN')) {
exit;
@@ -70,7 +70,7 @@ function PMA_exportHeader()
. '/**'.$GLOBALS['crlf']
. ' * Export to PHP Array plugin for PHPMyAdmin'.$GLOBALS['crlf']
. ' * @author Geoffray Warnants'.$GLOBALS['crlf']
. ' * @version 1.0'.$GLOBALS['crlf']
. ' * @version 0.2b'.$GLOBALS['crlf']
. ' */'.$GLOBALS['crlf'].$GLOBALS['crlf']
);
return true;
@@ -159,10 +159,7 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query)
for ($i = 0; $i < $columns_cnt; $i++) {
if (! isset($record[$i])) {
continue;
}
$isLastLine = ($i+1 >= $columns_cnt);
$column = $columns[$i];