Skip to content

Commit

Permalink
Update Dao.php
Browse files Browse the repository at this point in the history
  • Loading branch information
dkarlovi authored Oct 5, 2023
1 parent c12ceed commit b23d46c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ProcessManagerBundle/Model/Executable/Dao.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function getById($id = null)

$data = $this->db->fetchAssociative('SELECT * FROM '.$this->tableName.' WHERE id = ?', [$this->model->getId()]);

if (!$data["id"]) {
if ($data === false) {
throw new \Exception("Executable with the ID " . $this->model->getId() . " doesn't exists");
}

Expand Down

0 comments on commit b23d46c

Please sign in to comment.