diff --git a/ChangeLog b/ChangeLog index 803074ca1..094370505 100755 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,7 @@ $Source$ * tbl_properties.php3: fix division by zero error * tbl_change.php3: enlarge binary protection to (var)char binary types + * db_details.php3: fix disfigurement if table size 0 Bytes 2001-07-09 Loïc Chapeaux * header.inc.php3: cosmetic changes. diff --git a/db_details.php3 b/db_details.php3 index b2d3a0f4b..e3e992966 100755 --- a/db_details.php3 +++ b/db_details.php3 @@ -121,7 +121,8 @@ else if (MYSQL_MAJOR_VERSION >= 3.23 && isset($tbl_cache)) { $tblsize = $sts_data['Data_length'] + $sts_data['Index_length']; $sum_size += $tblsize; $sum_entries += $sts_data['Rows']; - list($formated_size, $unit) = format_byte_down($tblsize, 3, 1); + if ($tblsize>0) list($formated_size, $unit) = format_byte_down($tblsize, 3, 1); + else list($formated_size, $unit) = format_byte_down($tblsize, 3, 0); ?>