Fixes for SQL Validator

This commit is contained in:
Robin Johnson
2002-08-29 08:46:50 +00:00
parent 6467812351
commit 0439a8630f
2 changed files with 13 additions and 2 deletions

View File

@@ -5,6 +5,13 @@ phpMyAdmin - Changelog
$Id$
$Source$
2002-08-29 Robin Johnson <robbat2@users.sourceforge.net>
* libraries/sqlvalidator.lib.php3:
- Fix for bug in Alex's fix for bug #594947
line 67, change || to &&
- Fix for undefined string in error case of sqlvalidator that is
actually never reached. Just commented out for now
2002-08-28 Marc Delisle <lem9@users.sourceforge.net>
* libraries/display_tbl.lib.php3: Bug 576895: matching a float field

View File

@@ -64,7 +64,7 @@ if (!defined('PMA_SQL_VALIDATOR_INCLUDED')) {
if ($cfg['SQLValidator']['use']) {
if (!(isset($GLOBALS['sqlvalidator_error'])
|| !$GLOBALS['sqlvalidator_error'])) {
&& !$GLOBALS['sqlvalidator_error'])) {
// create new class instance
$srv = new PMA_SQLValidator();
@@ -92,10 +92,14 @@ if (!defined('PMA_SQL_VALIDATOR_INCLUDED')) {
}
} else {
} // end if
/*
else {
// The service is not available so note that properly
$str = $GLOBALS['strValidatorDisabled'];
} // end if... else...
*/
// Gives string back to caller
return $str;