diff options
Diffstat (limited to 'libs/Zend')
-rw-r--r-- | libs/Zend/Db/Adapter/Mysqli.php | 5 |
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); |