first bug in db_details_qbe

This commit is contained in:
Mike Beck
2002-09-19 07:55:05 +00:00
parent 4061729f5c
commit 2f66c315e4

View File

@@ -786,10 +786,10 @@ if (isset($Field) && count($Field) > 0) {
unset($_tab_raw,$_col_raw);
if (count($col_where) == 1) {
if (count($tab_where) == 1) {
// if there is exactly one column that has a decent where-clause
// we will just use this
$master = $col_where[0];
$master = key($tab_where);
// echo "nur ein where: master =".$master . "\n";
} else {
// now let's find out which of the tables has an index
@@ -979,7 +979,7 @@ if (isset($Field) && count($Field) > 0) {
if ($run>5) {
while ( list(,$_tab) = each($tab_left)) {
$emerg .= ', '.$t_tab;
$emerg .= ', '.$_tab;
$tab_left=array_short($tab_left,$_tab);
}
}