bug #1672789 Undefined offset: 4 in sqlparser.lib.php #1674

This commit is contained in:
Sebastian Mendel
2007-03-19 14:19:22 +00:00
parent 5d3c12c5bd
commit d0f31e2091
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -1,5 +1,5 @@
<?php
/* vim: expandtab sw=4 ts=4 sts=4: */
/* vim: set expandtab sw=4 ts=4 sts=4: */
/** SQL Parser Functions for phpMyAdmin
*
* Copyright 2002 Robin Johnson <robbat2@users.sourceforge.net>
@@ -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';