From 18fdcca38ac91f8b3ece128f84f66a6837f8f160 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 15 Jul 2004 14:02:06 +0000 Subject: [PATCH] Fix export of queries with empty WHERE clause (bug #990330). --- ChangeLog | 4 ++++ tbl_properties_export.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index cfaef239d..e2cf4cf21 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ phpMyAdmin - Changelog $Id$ $Source$ +2004-07-15 Michal Čihař + * tbl_properties_export.php: Fix export of queries with empty WHERE clause + (bug #990330). + 2004-07-15 Marc Delisle * tbl_change.php: bug 990959, undefined index for DATETIME field (problem in UTF-8 only!) diff --git a/tbl_properties_export.php b/tbl_properties_export.php index 9e261caad..ec08e6df5 100644 --- a/tbl_properties_export.php +++ b/tbl_properties_export.php @@ -42,7 +42,7 @@ if (isset($sql_query)) { $sql_query .= $conj . '( ' . $key . ' ) '; $conj = 'OR '; } - } else { + } elseif (!empty($analyzed_sql[0]['where_clause'])) { $sql_query .= ' WHERE ' . $analyzed_sql[0]['where_clause']; } if (!empty($analyzed_sql[0]['group_by_clause'])) {