bug #1435303, error on empty BLOB transformation
This commit is contained in:
@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
|
||||
$Id$
|
||||
$Source$
|
||||
|
||||
2006-02-22 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* libraries/display_tbl.lib.php: bug #1435303, error on empty BLOB transf.
|
||||
|
||||
2006-02-22 Michal Čihař <michal@cihar.com>
|
||||
* libraries/iconv_wrapper.lib.php, libraries/charset_conversion.lib.php:
|
||||
Fixes for AIX wrapper, thanks to Björn Wiberg - bwiberg.
|
||||
|
@@ -1295,13 +1295,17 @@ function PMA_displayTableBody(&$dt_result, &$is_display, $map, $analyzed_sql) {
|
||||
if (!isset($row[$i]) || is_null($row[$i])) {
|
||||
$blobtext .= ' - NULL';
|
||||
} elseif (isset($row[$i])) {
|
||||
$blob_size = PMA_formatByteDown(strlen($row[$i]), 3, 1);
|
||||
$blobtext .= ' - '. $blob_size [0] . ' ' . $blob_size[1];
|
||||
unset($blob_size);
|
||||
$blob_size = strlen($row[$i]);
|
||||
$display_blob_size = PMA_formatByteDown($blob_size, 3, 1);
|
||||
$blobtext .= ' - '. $display_blob_size[0] . ' ' . $display_blob_size[1];
|
||||
unset($display_blob_size);
|
||||
}
|
||||
|
||||
$blobtext .= ']';
|
||||
$blobtext = ($default_function != $transform_function ? $transform_function($blobtext, $transform_options, $meta) : $default_function($blobtext, array(), $meta));
|
||||
if ($blob_size > 0) {
|
||||
$blobtext = ($default_function != $transform_function ? $transform_function($blobtext, $transform_options, $meta) : $default_function($blobtext, array(), $meta));
|
||||
}
|
||||
unset($blob_size);
|
||||
|
||||
$vertical_display['data'][$row_no][$i] = ' <td align="center"' . $column_style . $bgcolor . '>' . $blobtext . '</td>';
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user