From: <var...@us...> - 2022-02-02 11:27:46
|
Revision: 10968 http://sourceforge.net/p/phpwiki/code/10968 Author: vargenau Date: 2022-02-02 11:27:45 +0000 (Wed, 02 Feb 2022) Log Message: ----------- Fix dsn Modified Paths: -------------- trunk/lib/WikiDB/backend/PDO_mysql.php Modified: trunk/lib/WikiDB/backend/PDO_mysql.php =================================================================== --- trunk/lib/WikiDB/backend/PDO_mysql.php 2022-02-01 09:10:03 UTC (rev 10967) +++ trunk/lib/WikiDB/backend/PDO_mysql.php 2022-02-02 11:27:45 UTC (rev 10968) @@ -50,8 +50,8 @@ $sth = $this->_dbh->prepare("SHOW processlist"); if ($sth->execute()) while ($row = $sth->fetch(PDO::FETCH_ASSOC)) { - if ($row["db"] == $this->_dsn['database'] - and $row["User"] == $this->_dsn['username'] + if ($row["db"] == $this->_dbh->dsn['database'] + and $row["User"] == $this->_dbh->dsn['username'] and $row["Time"] > $this->_dbparams['timeout'] and $row["Command"] == "Sleep" ) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |