Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Fixed "Commands out of sync; you can't run this command now"
Browse files Browse the repository at this point in the history
  • Loading branch information
malkesh committed May 2, 2019
1 parent 2cfd90e commit 0bd40f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SaveHandler/DbTableGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ public function write($id, $data)
$rows = $this->tableGateway->select([
$this->options->getIdColumn() => $id,
$this->options->getNameColumn() => $this->sessionName,
]);
])->current();

if ($rows->current()) {
if ($rows) {
return (bool) $this->tableGateway->update($data, [
$this->options->getIdColumn() => $id,
$this->options->getNameColumn() => $this->sessionName,
Expand Down

0 comments on commit 0bd40f1

Please sign in to comment.