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:
authorrobocoder <anthon.pang@gmail.com>2011-07-03 06:30:47 +0400
committerrobocoder <anthon.pang@gmail.com>2011-07-03 06:30:47 +0400
commit64dea4affc063eff139b249b1cfa8781d189087d (patch)
treef79fe4d29e60f6f90176124109ff1e7f4fdfe26f /core/Session
parent340a868616c5cb5db173623cd4fa4983e1fe6875 (diff)
refs #2491 - fix typo
The new savehandler uses the DB adapters that have already been well-tested in Piwik, instead of using Zend_DB_Table (as Zend_Db_Adapter_Mysqli isn't as well-supported as the PDO adapters in ZF). Note: there's a MySQL-ism which we can address later in #1368. git-svn-id: http://dev.piwik.org/svn/trunk@4970 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/Session')
-rw-r--r--core/Session/SaveHandler/DbTable.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Session/SaveHandler/DbTable.php b/core/Session/SaveHandler/DbTable.php
index b5cf0c8ba0..c891f915f5 100644
--- a/core/Session/SaveHandler/DbTable.php
+++ b/core/Session/SaveHandler/DbTable.php
@@ -71,7 +71,7 @@ class Piwik_Session_SaveHandler_DbTable implements Zend_Session_SaveHandler_Inte
{
$sql = 'SELECT '.$this->config['dataColumn'].' FROM '.$this->config['name']
.' WHERE '.$this->config['primary'].' = ?'
- .' AND '.$this->config['modifiedColumn'].' + '.$this->config['lifetimeColumn'].' < ?';
+ .' AND '.$this->config['modifiedColumn'].' + '.$this->config['lifetimeColumn'].' >= ?';
$result = $this->config['db']->fetchOne($sql, array($id, time()));
if(!$result)