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:
authorMatthieu Napoli <matthieu@mnapoli.fr>2015-03-20 05:30:44 +0300
committerMatthieu Napoli <matthieu@mnapoli.fr>2015-03-20 05:30:44 +0300
commit45299cd7651114a1d909aaba45ad7558b1135d75 (patch)
tree54e7cca8b60319fc66835c433b338071650ced54
parent45f6ad830e8f42cead9e07386a7c1c7c39fb5079 (diff)
Fixing loose comparison
Related: now unit tests shouldn't trigger a MySQL query, so they should pass on scrutinizer
-rw-r--r--core/Db.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Db.php b/core/Db.php
index 8c718ceac5..521b7f205f 100644
--- a/core/Db.php
+++ b/core/Db.php
@@ -738,7 +738,7 @@ class Db
public static function isOptimizeInnoDBSupported($version = null)
{
- if (empty($version)) {
+ if ($version === null) {
$version = Db::fetchOne("SELECT VERSION()");
}