Skip to content

Commit

Permalink
Fix when the date is the same as stored
Browse files Browse the repository at this point in the history
update returns 0 if the data being updated matches the one in the database, which produces a `false` return, which in turn triggers a warning in Zend_Session::writeClose - session_write_close()

Co-Authored-By: Pablo Guzman <[email protected]>
  • Loading branch information
2 people authored and falkenhawk committed Dec 23, 2022
1 parent 1e091b5 commit 29758cd
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,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 29758cd

Please sign in to comment.