patch #2816713, fix for PHP array export: NULL values not correctly dumped
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
* Set of functions used to build dumps of tables as PHP Arrays
|
* Set of functions used to build dumps of tables as PHP Arrays
|
||||||
*
|
*
|
||||||
* @author Geoffray Warnants <http://www.geoffray.be>
|
* @author Geoffray Warnants <http://www.geoffray.be>
|
||||||
* @version 0.1b (20090610)
|
* @version 0.2b (20090704)
|
||||||
*/
|
*/
|
||||||
if (! defined('PHPMYADMIN')) {
|
if (! defined('PHPMYADMIN')) {
|
||||||
exit;
|
exit;
|
||||||
@@ -70,7 +70,7 @@ function PMA_exportHeader()
|
|||||||
. '/**'.$GLOBALS['crlf']
|
. '/**'.$GLOBALS['crlf']
|
||||||
. ' * Export to PHP Array plugin for PHPMyAdmin'.$GLOBALS['crlf']
|
. ' * Export to PHP Array plugin for PHPMyAdmin'.$GLOBALS['crlf']
|
||||||
. ' * @author Geoffray Warnants'.$GLOBALS['crlf']
|
. ' * @author Geoffray Warnants'.$GLOBALS['crlf']
|
||||||
. ' * @version 1.0'.$GLOBALS['crlf']
|
. ' * @version 0.2b'.$GLOBALS['crlf']
|
||||||
. ' */'.$GLOBALS['crlf'].$GLOBALS['crlf']
|
. ' */'.$GLOBALS['crlf'].$GLOBALS['crlf']
|
||||||
);
|
);
|
||||||
return true;
|
return true;
|
||||||
@@ -159,10 +159,7 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query)
|
|||||||
|
|
||||||
|
|
||||||
for ($i = 0; $i < $columns_cnt; $i++) {
|
for ($i = 0; $i < $columns_cnt; $i++) {
|
||||||
if (! isset($record[$i])) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
$isLastLine = ($i+1 >= $columns_cnt);
|
$isLastLine = ($i+1 >= $columns_cnt);
|
||||||
|
|
||||||
$column = $columns[$i];
|
$column = $columns[$i];
|
||||||
|
Reference in New Issue
Block a user