diff --git a/src/ProcessManagerBundle/Model/Process/Dao.php b/src/ProcessManagerBundle/Model/Process/Dao.php index 3580b03..8cc2cfb 100644 --- a/src/ProcessManagerBundle/Model/Process/Dao.php +++ b/src/ProcessManagerBundle/Model/Process/Dao.php @@ -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("Process with the ID " . $this->model->getId() . " doesn't exists"); }