From: <var...@us...> - 2014-07-17 08:33:06
|
Revision: 8967 http://sourceforge.net/p/phpwiki/code/8967 Author: vargenau Date: 2014-07-17 08:33:04 +0000 (Thu, 17 Jul 2014) Log Message: ----------- Fix variable names Modified Paths: -------------- trunk/lib/DbSession/PDO.php Modified: trunk/lib/DbSession/PDO.php =================================================================== --- trunk/lib/DbSession/PDO.php 2014-07-16 16:06:31 UTC (rev 8966) +++ trunk/lib/DbSession/PDO.php 2014-07-17 08:33:04 UTC (rev 8967) @@ -46,7 +46,7 @@ function quote($string) { - return $this->_backend->quote($sql); + return $this->_backend->quote($string); } function _disconnect() @@ -143,13 +143,13 @@ if (isa($dbh, 'ADODB_postgres64')) $sess_data = base64_encode($sess_data); - /* AffectedRows with sessions seems to be instable on certain platforms. + /* AffectedRows with sessions seems to be unstable on certain platforms. * Enable the safe and slow USE_SAFE_DBSESSION then. */ if (USE_SAFE_DBSESSION) { $this->_backend->beginTransaction(); $rs = $this->query("DELETE FROM $table" - . " WHERE sess_id=$qid"); + . " WHERE sess_id=$id"); $sth = $dbh->prepare("INSERT INTO $table" . " (sess_id, sess_data, sess_date, sess_ip)" . " VALUES (?, ?, ?, ?)"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |