From c12ceedb0e252a26316e424f5e490983ad91b883 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dalibor=20Karlovi=C4=87?= Date: Thu, 5 Oct 2023 17:48:40 +0200 Subject: [PATCH] Update Dao.php --- src/ProcessManagerBundle/Model/Process/Dao.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); }