Fix undefined index.
This commit is contained in:
@@ -8,6 +8,7 @@ $Source$
|
||||
2004-10-19 Michal Čihař <michal@cihar.com>
|
||||
* export.php: Use just \n for SQL exports (bug #1042521).
|
||||
* libraries/read_dump.lib.php: Set correct return value (bug #1048861).
|
||||
* sql.php: Fix undefined index.
|
||||
|
||||
2004-10-17 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* lang/turkish update, thanks to boralioglu.
|
||||
|
2
sql.php
2
sql.php
@@ -770,7 +770,7 @@ else {
|
||||
// (the url_query has extra parameters that won't be used to export)
|
||||
// (the single_table parameter is used in display_export.lib.php
|
||||
// to hide the SQL and the structure export dialogs)
|
||||
if ($analyzed_sql[0]['querytype'] == 'SELECT' && !isset($printview)) {
|
||||
if (isset($analyzed_sql[0]) && $analyzed_sql[0]['querytype'] == 'SELECT' && !isset($printview)) {
|
||||
if (isset($analyzed_sql[0]['table_ref'][0]['table_true_name']) && !isset($analyzed_sql[0]['table_ref'][1]['table_true_name'])) {
|
||||
$single_table = '&single_table=true';
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user