Make sure sqlvalidator_error is always defined.

This commit is contained in:
Michal Čihař
2010-07-21 13:19:19 +02:00
parent 1faec011d0
commit 7d9bdc4754

View File

@@ -34,11 +34,13 @@ if (! defined('PHPMYADMIN')) {
* Load SOAP client.
*/
if (class_exists('SOAPClient')) {
$GLOBALS['sqlvalidator_error'] = false;
$GLOBALS['sqlvalidator_soap'] = 'PHP';
} else {
@include_once 'SOAP/Client.php';
if (class_exists('SOAP_Client')) {
$GLOBALS['sqlvalidator_soap'] = 'PEAR';
$GLOBALS['sqlvalidator_error'] = false;
} else {
$GLOBALS['sqlvalidator_soap'] = 'NONE';
$GLOBALS['sqlvalidator_error'] = TRUE;