Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libs/Zend/Db/Adapter/Mysqli.php')
-rw-r--r--libs/Zend/Db/Adapter/Mysqli.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/Zend/Db/Adapter/Mysqli.php b/libs/Zend/Db/Adapter/Mysqli.php
index e896b71a0d..2dcdd67813 100644
--- a/libs/Zend/Db/Adapter/Mysqli.php
+++ b/libs/Zend/Db/Adapter/Mysqli.php
@@ -317,8 +317,11 @@ class Zend_Db_Adapter_Mysqli extends Zend_Db_Adapter_Abstract
} elseif(is_string($option)) {
// Suppress warnings here
// Ignore it if it's not a valid constant
+ if(!defined(strtoupper($option))) {
+ continue;
+ }
$option = @constant(strtoupper($option));
- if($option === null)
+ if ($option === null)
continue;
}
mysqli_options($this->_connection, $option, $value);