libraries/sqlvalidator.*.php3: Finish fixing bug #644709

This commit is contained in:
Robin Johnson
2003-01-16 07:37:46 +00:00
parent 013b1dab79
commit 88b02c7da6
3 changed files with 11 additions and 6 deletions

View File

@@ -64,8 +64,10 @@ if (!defined('PMA_SQL_VALIDATOR_INCLUDED')) {
$str = '';
if ($cfg['SQLValidator']['use']) {
if (!(isset($GLOBALS['sqlvalidator_error'])
&& !$GLOBALS['sqlvalidator_error'])) {
if (isset($GLOBALS['sqlvalidator_error'])
&& $GLOBALS['sqlvalidator_error']) {
$str = sprintf($GLOBALS['strValidatorError'], '<a href="./Documentation.html#faqsqlvalidator" target="documentation">', '</a>');
} else {
// create new class instance
$srv = new PMA_SQLValidator();
@@ -87,10 +89,6 @@ if (!defined('PMA_SQL_VALIDATOR_INCLUDED')) {
// Do service validation
$str = $srv->validationString($sql);
} else {
$str = sprintf($GLOBALS['strValidatorError'], '<a href="./Documentation.html#faqsqlvalidator" target="documentation">', '</a>');
}
} // end if