Skip to content

Commit

Permalink
Merge pull request #23 from Dringho/master
Browse files Browse the repository at this point in the history
Fix Zend_Session_SaveHandler_DbTable->write triggering warning
  • Loading branch information
Shardj authored Oct 22, 2019
2 parents 4d9d7ed + 9175301 commit 62628f6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions library/Zend/Session/SaveHandler/DbTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -346,10 +346,8 @@ public function write($id, $data)

if (count($rows)) {
$data[$this->_lifetimeColumn] = $this->_getLifetime($rows->current());

if ($this->update($data, $this->_getPrimary($id, self::PRIMARY_TYPE_WHERECLAUSE))) {
$return = true;
}
$this->update($data, $this->_getPrimary($id, self::PRIMARY_TYPE_WHERECLAUSE));
$return = true;
} else {
$data[$this->_lifetimeColumn] = $this->_lifetime;

Expand Down

0 comments on commit 62628f6

Please sign in to comment.