diff options
Diffstat (limited to 'modules/LogStats/Db.php')
-rw-r--r-- | modules/LogStats/Db.php | 6 |
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 = ''; |