undefined variable when a BLOB is NULL

This commit is contained in:
Marc Delisle
2006-03-16 18:16:44 +00:00
parent a788dfcb68
commit 9dde64b3bf
2 changed files with 4 additions and 0 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2006-03-16 Marc Delisle <lem9@users.sourceforge.net>
* libraries/display_tbl.lib.php: undefined variable when a BLOB is NULL
2006-03-16 Michal Čihař <michal@cihar.com> 2006-03-16 Michal Čihař <michal@cihar.com>
* libraries/select_server.lib.php: Move end of fieldset to correct place * libraries/select_server.lib.php: Move end of fieldset to correct place
after button (patch #1450559). after button (patch #1450559).

View File

@@ -1294,6 +1294,7 @@ function PMA_displayTableBody(&$dt_result, &$is_display, $map, $analyzed_sql) {
$blobtext = '[BLOB'; $blobtext = '[BLOB';
if (!isset($row[$i]) || is_null($row[$i])) { if (!isset($row[$i]) || is_null($row[$i])) {
$blobtext .= ' - NULL'; $blobtext .= ' - NULL';
$blob_size = 0;
} elseif (isset($row[$i])) { } elseif (isset($row[$i])) {
$blob_size = strlen($row[$i]); $blob_size = strlen($row[$i]);
$display_blob_size = PMA_formatByteDown($blob_size, 3, 1); $display_blob_size = PMA_formatByteDown($blob_size, 3, 1);