diff options
Diffstat (limited to 'modules/LogStats/Db.php')
-rw-r--r-- | modules/LogStats/Db.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/LogStats/Db.php b/modules/LogStats/Db.php index c49fcd9151..7637b72fdf 100644 --- a/modules/LogStats/Db.php +++ b/modules/LogStats/Db.php @@ -83,6 +83,8 @@ class Piwik_LogStats_Db $this->connection = new PDO($this->dsn, $this->username, $this->password); $this->connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); + // we may want to setAttribute(PDO::ATTR_TIMEOUT ) to a few seconds (default is 60) in case the DB is locked + // the piwik.php would stay waiting for the database... bad! // we delete the password from this object "just in case" it could be printed $this->password = ''; |