uninitialized vars (PHP3)

This commit is contained in:
Marc Delisle
2001-08-03 00:36:04 +00:00
parent 2005bae5d5
commit adbfa6366d
2 changed files with 24 additions and 5 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$
$Source$
2001-08-02 Marc Delisle <lem9@users.sourceforge.net>
* tbl_qbe.php3: workaround a PHP3 problem
2001-08-02 Benjamin Gandon <gandon@isia.cma.fr>
* Documentation.html: added a FAQ entry about the buggy php
package still available for RedHat 7.0

View File

@@ -51,7 +51,7 @@ if (!isset($DelCol)) {
if (!isset($prev_Criteria)) {
$prev_Criteria = '';
}
// test for a PHP3 problem, to be confirmed:
// workaround for a PHP3 problem
if (!isset($Criteria)) {
//$Criteria = '';
$Criteria = array();
@@ -60,16 +60,32 @@ if (!isset($Criteria)) {
}
}
if (!isset($InsRow)) {
$InsRow = '';
// $InsRow = '';
$InsRow = array();
for ($i=0; $i<$Columns; $i++) {
$InsRow[$i]='';
}
}
if (!isset($DelRow)) {
$DelRow = '';
// $DelRow = '';
$DelRow = array();
for ($i=0; $i<$Columns; $i++) {
$DelRow[$i]='';
}
}
if (!isset($AndOrRow)) {
$AndOrRow = '';
// $AndOrRow = '';
$AndOrRow = array();
for ($i=0; $i<$Columns; $i++) {
$AndOrRow[$i]='';
}
}
if (!isset($AndOrCol)) {
$AndOrCol = '';
// $AndOrCol = '';
$AndOrCol = array();
for ($i=0; $i<$Columns; $i++) {
$AndOrCol[$i]='';
}
}
$wid = 12;
$widem = $wid . 'em';