From 1bb13b52ef3d7e17cac3ec88d00a9c4d9c2bc8fe Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Tue, 4 Feb 2003 11:29:25 +0000 Subject: [PATCH] bug 661758 --- ChangeLog | 2 ++ db_details_qbe.php3 | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ef85ceb14..305c0c5cd 100755 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,8 @@ $Source$ 2003-02-04 Marc Delisle * Documentation.html: new faq entry about IE bug with http auth, switching from one server to the other + * db_details_qbe.php3: bug 661758 (undefined offset when doing a qbe + and only table selected) 2003-02-03 Michal Cihar * libraries/display_tbl.lib.php3, tbl_change.php3: Show blob size (RFE diff --git a/db_details_qbe.php3 b/db_details_qbe.php3 index 610908802..b3de9abe6 100755 --- a/db_details_qbe.php3 +++ b/db_details_qbe.php3 @@ -891,7 +891,9 @@ if (isset($Field) && count($Field) > 0) { $master = key($csize); //echo 'kleinste Datei: ' . $master . "\n"; } else { - $master = $col_cand[0]; + //$master = $col_cand[0]; + reset($col_cand); + $master = current($col_cand); //echo 'master ist der einzige Kandidat: ' . $master . "\n"; } } // end if (exactly one where clause)