Fixed a bug in db_details.php3 if there is no indexes

This commit is contained in:
Loïc Chapeaux
2001-07-10 08:28:28 +00:00
parent 7185315db4
commit aedcaa11b7
2 changed files with 4 additions and 1 deletions

View File

@@ -11,6 +11,7 @@ $Source$
$cfgServerDefault is set to 0 in the config file.
* db_details.php3, tbl_properties.php3: fixed display problems with NS4+
(including bug #439962).
* db_details.php3, line 185: fixed a bug if there is no indexes.
2001-07-09 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* db_details.php3, lines 273-275: vertically center bookmarks options.

View File

@@ -182,7 +182,9 @@ while ($row = mysql_fetch_array($result)) {
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<?php
$index_count = count($ret_keys);
$index_count = (isset($ret_keys))
? count($ret_keys)
: 0;
if ($index_count > 0) {
?>
<td valign="top" align="left">