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 'core/Db/BatchInsert.php')
-rw-r--r--core/Db/BatchInsert.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/Db/BatchInsert.php b/core/Db/BatchInsert.php
index f2b146e4ea..73dfab5940 100644
--- a/core/Db/BatchInsert.php
+++ b/core/Db/BatchInsert.php
@@ -221,10 +221,9 @@ class BatchInsert
* @see http://bugs.php.net/bug.php?id=54158
*/
$openBaseDir = ini_get('open_basedir');
- $isUsingNonBuggyMysqlnd = function_exists('mysqli_get_client_stats') && version_compare(PHP_VERSION, '5.6.17', '>=');
$safeMode = ini_get('safe_mode');
- if (($isUsingNonBuggyMysqlnd || empty($openBaseDir)) && empty($safeMode)) {
+ if ((function_exists('mysqli_get_client_stats') || empty($openBaseDir)) && empty($safeMode)) {
// php 5.x - LOAD DATA LOCAL INFILE only used if open_basedir is not set (or we're using a non-buggy version of mysqlnd)
// and if safe mode is not enabled
$keywords[] = 'LOCAL ';