From 806bc993daf650ce5c3597865a281d3ac929fffe Mon Sep 17 00:00:00 2001 From: isUnknown Date: Wed, 26 Mar 2025 17:03:03 +0100 Subject: [PATCH] add error handling when calling createStep function --- public/site/models/project.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/public/site/models/project.php b/public/site/models/project.php index fa4d8da..ea2fea8 100644 --- a/public/site/models/project.php +++ b/public/site/models/project.php @@ -7,7 +7,11 @@ class ProjectPage extends NotificationsPage { $steps = []; foreach ($this->children() as $child) { - $steps[] = $this->createStep($child); + try { + $steps[] = $this->createStep($child); + } catch (\Throwable $th) { + //throw $th; + } } usort($steps, fn($a, $b) => $a['index'] <=> $b['index']);