From 3698cbd4ae78494f84346ae4cd44f57b1bef91ba Mon Sep 17 00:00:00 2001 From: Garvin Hicking Date: Tue, 29 Apr 2003 16:05:10 +0000 Subject: [PATCH] uninitialized var --- ChangeLog | 1 + db_details_structure.php3 | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8406a10a06..8c11cc6657 100755 --- a/ChangeLog +++ b/ChangeLog @@ -12,6 +12,7 @@ $Source$ * tbl_move_copy.php3: Bug #729416 * tbl_query_box.php3, queryframe.php3: Bug #729446, maybe #728571 * index.php3: Typo + * db_details_structure.php3: Prevent uninitialized variable 2003-04-28 Garvin Hicking * index.php3, queryframe.php3, tbl_query_box.php3, querywindow.php3: diff --git a/db_details_structure.php3 b/db_details_structure.php3 index f763a2b4c7..be6bb9b77d 100644 --- a/db_details_structure.php3 +++ b/db_details_structure.php3 @@ -571,7 +571,10 @@ if ($num_tables > 0 } // end if // is this OK to check for 'class' support? -$takeaway = $url_query . '&table=' . urlencode($table); +if ($num_tables > 0) { + $takeaway = $url_query . '&table=' . urlencode($table); +} + if ($cfgRelation['pdfwork'] && $num_tables > 0) { ?>