need at least 2 items for optgroup in database selector
This commit is contained in:
@@ -10,6 +10,8 @@ $Source$
|
|||||||
thanks to Ryan Schmidt
|
thanks to Ryan Schmidt
|
||||||
* server_privileges.php: undefined index $GLOBALS[''],
|
* server_privileges.php: undefined index $GLOBALS[''],
|
||||||
thanks to Ryan Schmidt
|
thanks to Ryan Schmidt
|
||||||
|
* queryframe.php: need at least 2 items to display a group in the
|
||||||
|
database selector, thanks to Ryan Schmidt
|
||||||
|
|
||||||
2005-08-06 Marc Delisle <lem9@users.sourceforge.net>
|
2005-08-06 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* queryframe.php: fixes for tree subgroups in databases selector:
|
* queryframe.php: fixes for tree subgroups in databases selector:
|
||||||
|
@@ -371,12 +371,10 @@ if ($num_dbs > 1) {
|
|||||||
} else {
|
} else {
|
||||||
$next_parts = explode($cfg['LeftFrameDBSeparator'],$dblist[$i+1],2);
|
$next_parts = explode($cfg['LeftFrameDBSeparator'],$dblist[$i+1],2);
|
||||||
}
|
}
|
||||||
if (count($parts) > 1 || (count($next_parts) > 1 && $parts[0] == $next_parts[0])) {
|
if (count($next_parts) > 1 && $parts[0] == $next_parts[0] && $parent != $parts[0]) {
|
||||||
if ($parent != $parts[0]) {
|
echo ' '
|
||||||
echo ' '
|
. '<optgroup label="'.htmlspecialchars($parts[0]).'">'."\n";
|
||||||
. '<optgroup label="'.htmlspecialchars($parts[0]).'">'."\n";
|
$parent = $parts[0];
|
||||||
$parent = $parts[0];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user