From 4733247c21a0cb76defa9fced6356b665109b2c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Sun, 12 Jan 2025 16:30:34 +0000 Subject: [PATCH] fixed created_by and created_from argument check.. --- app/Abstracts/Job.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/Abstracts/Job.php b/app/Abstracts/Job.php index 421071de3..841e3ca10 100644 --- a/app/Abstracts/Job.php +++ b/app/Abstracts/Job.php @@ -43,6 +43,10 @@ abstract class Job return; } + if (empty($arguments[0])) { + $arguments[0] = []; + } + $request = $this->getRequestInstance($arguments[0]); if ($request instanceof Request) { $this->request = $request; @@ -91,7 +95,7 @@ abstract class Job public function getRequestInstance($request) { - if (!is_array($request)) { + if (! is_array($request)) { return $request; }