From d9d9a1b4942d19438a8ed7d7198dce211baaf90f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Marmillod?= <9134609+fredmarmillod@users.noreply.github.com> Date: Mon, 5 Aug 2024 09:57:49 +0200 Subject: [PATCH] Change conditions order in Questions.php --- src/Helpers/Questions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Helpers/Questions.php b/src/Helpers/Questions.php index aae7aa3..6248d09 100644 --- a/src/Helpers/Questions.php +++ b/src/Helpers/Questions.php @@ -26,7 +26,7 @@ public function userQuestion(string $user_question): void ]); } - if ($laragenie->exists && config('laragenie.database.fetch') && ! $ai) { + if (config('laragenie.database.fetch') && $laragenie->exists && ! $ai) { $this->textOutput($laragenie->answer); } else { $results = (array) $this->askBot($formattedQuestion);