diff --git a/ChangeLog b/ChangeLog index cd95ff884..6f531b5a6 100755 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,7 @@ $Source$ 2004-03-25 Michal Cihar * lang/czech: Updated. + * tbl_select.php: Fixed undefined variable warning. 2004-04-13 Marc Delisle * libraries/relation.lib.php: bug 930445 when PMA_table_info not defined, diff --git a/tbl_select.php b/tbl_select.php index d1181389c..657b98c95 100644 --- a/tbl_select.php +++ b/tbl_select.php @@ -278,7 +278,7 @@ function PMA_tbl_select_operator(f, index, multiple) { else { // Builds the query - $sql_query = 'SELECT ' . (($distinct == 'DISTINCT') ? 'DISTINCT ' : ''); + $sql_query = 'SELECT ' . (isset($distinct) ? 'DISTINCT ' : ''); // if all fields were selected to display, we do a SELECT * // (more efficient and this helps prevent a problem in IE