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

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