Skip to content

Commit b23d46c

Browse files
authored
Update Dao.php
1 parent c12ceed commit b23d46c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/ProcessManagerBundle/Model/Executable

src/ProcessManagerBundle/Model/Executable/Dao.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function getById($id = null)
3636

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

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

0 commit comments

Comments
 (0)