From f05ff1c22a9448b050af2464f34efed2073e20ec Mon Sep 17 00:00:00 2001 From: Bosun Date: Wed, 6 Dec 2023 16:09:26 +0300 Subject: [PATCH] update index.php --- public/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/index.php b/public/index.php index 87a412c..3d59e6a 100644 --- a/public/index.php +++ b/public/index.php @@ -147,13 +147,13 @@ // $statement->execute([$url_id]); $urlToCheck = $pdo->query($query)->fetchColumn(); -// $createdAt = Carbon::now(); + $createdAt = Carbon::now(); $client = $this->get('client'); // $client = new Client(); try { - $result = $client->get($urlToCheck['name']); + $result = $client->get($urlToCheck); $statusCode = $result->getStatusCode(); $this->get('flash')->addMessage('success', 'Страница успешно проверена'); } catch (ClientException $e) {