From d0f31e2091711554dfdb28f2ee0e1ece23162fc5 Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Mon, 19 Mar 2007 14:19:22 +0000 Subject: [PATCH] bug #1672789 Undefined offset: 4 in sqlparser.lib.php #1674 --- ChangeLog | 1 + libraries/sqlparser.lib.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3f1361951..bc236ed96 100644 --- a/ChangeLog +++ b/ChangeLog @@ -18,6 +18,7 @@ $HeadURL$ - bug #1674972 no export with %afm% - bug #1664212 querywindow loses url encoded characters - bug #1682044 Export file even if file not selected +- bug #1672789 Undefined offset: 4 in sqlparser.lib.php #1674 - [gui] avoid displaying a wide selector in server selection + [core] added PMA_fatalError() and made use of it . [i18n] use generic $strOptions diff --git a/libraries/sqlparser.lib.php b/libraries/sqlparser.lib.php index dae519c48..07326e329 100644 --- a/libraries/sqlparser.lib.php +++ b/libraries/sqlparser.lib.php @@ -1,5 +1,5 @@ @@ -1732,7 +1732,7 @@ if ( ! defined( 'PMA_MINIMUM_COMMON' ) ) { // ON UPDATE CURRENT_TIMESTAMP if ($upper_data == 'ON') { - if ($arr[$i+1]['type'] == 'alpha_reservedWord') { + if (isset($arr[$i+1]) && $arr[$i+1]['type'] == 'alpha_reservedWord') { $second_upper_data = strtoupper($arr[$i+1]['data']); if ($second_upper_data == 'DELETE') { $clause = 'on_delete';