We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 677f4c4 + b23d46c commit c0b9047Copy full SHA for c0b9047
2 files 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
src/ProcessManagerBundle/Model/Process/Dao.php
throw new \Exception("Process with the ID " . $this->model->getId() . " doesn't exists");
0 commit comments