We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c12ceed commit b23d46cCopy full SHA for b23d46c
1 file changed
src/ProcessManagerBundle/Model/Executable/Dao.php
@@ -36,7 +36,7 @@ public function getById($id = null)
36
37
$data = $this->db->fetchAssociative('SELECT * FROM '.$this->tableName.' WHERE id = ?', [$this->model->getId()]);
38
39
- if (!$data["id"]) {
+ if ($data === false) {
40
throw new \Exception("Executable with the ID " . $this->model->getId() . " doesn't exists");
41
}
42
0 commit comments