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

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