From a2c3b25977a54651608ed003527af638f6e455a5 Mon Sep 17 00:00:00 2001 From: Steve Alberty Date: Fri, 3 Aug 2001 11:13:32 +0000 Subject: [PATCH] remove some warnings in higher errorlevel --- ChangeLog | 6 ++++++ tbl_qbe.php3 | 36 +++++++++++++++++++++--------------- 2 files changed, 27 insertions(+), 15 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7e5016e24..c9b954a6e 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,12 @@ phpMyAdmin - Changelog $Id$ $Source$ + +2001-08-02 Steve Alberty + * tbl_properties.php3, db_details.php3: fixed problem with table + size display and MERGE tables + * tbl_qbe.php3: remove some warnings in higher errorlevel + 2001-08-03 Olivier Müller * Generated Documentation.txt based on Documentation.html (not everybody is having a webbrowser on their servers... :) diff --git a/tbl_qbe.php3 b/tbl_qbe.php3 index e83984186..52feed5d7 100755 --- a/tbl_qbe.php3 +++ b/tbl_qbe.php3 @@ -326,10 +326,12 @@ for ($x = 0; $x < $col; $x++) { if (isset($DelCol[$x]) && $DelCol[$x] == 'on') { continue; } - if (get_magic_quotes_gpc()) { - $stripped_Criteria = stripslashes($Criteria[$x]); - } else { - $stripped_Criteria = $Criteria[$x]; + if (isset($Criteria[$x])){ + if (get_magic_quotes_gpc()) { + $stripped_Criteria = stripslashes($Criteria[$x]); + } else { + $stripped_Criteria = $Criteria[$x]; + } } if (!isset($prev_Criteria[$x]) || urldecode($prev_Criteria[$x]) != htmlspecialchars($stripped_Criteria)) { @@ -356,7 +358,7 @@ for ($x = 0; $x < $col; $x++) { $w = 0; for ($y = 0; $y <= $row; $y++) { $bgcolor = ($y % 2) ? $cfgBgcolorOne : $cfgBgcolorTwo; - if ($InsRow[$y] == 'on') { + if (isset ($InsRow[$y]) && $InsRow[$y] == 'on') { $chk['or'] = ' checked="checked"'; $chk['and'] = ''; ?> @@ -425,12 +427,13 @@ for ($y = 0; $y <= $row; $y++) {