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 'modules/LogStats/Db.php')
-rw-r--r--modules/LogStats/Db.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/LogStats/Db.php b/modules/LogStats/Db.php
index be33107302..c49fcd9151 100644
--- a/modules/LogStats/Db.php
+++ b/modules/LogStats/Db.php
@@ -80,9 +80,9 @@ class Piwik_LogStats_Db
{
$timer = $this->initProfiler();
}
- $pdoConnect = new PDO($this->dsn, $this->username, $this->password);
- $pdoConnect->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
- $this->connection = $pdoConnect;
+
+ $this->connection = new PDO($this->dsn, $this->username, $this->password);
+ $this->connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
// we delete the password from this object "just in case" it could be printed
$this->password = '';