From 8b17cb48975596774a85c629987a73ec8bc61c58 Mon Sep 17 00:00:00 2001 From: KVAZAR <88580090+kvazar-network@users.noreply.github.com> Date: Sun, 24 Apr 2022 19:42:57 +0300 Subject: [PATCH] fix connection check --- crawler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crawler.php b/crawler.php index 4e068ca..b77bb2b 100644 --- a/crawler.php +++ b/crawler.php @@ -19,7 +19,7 @@ if (false !== sem_acquire($semaphore, 1)) { $blockLast = $db->getLastBlock(); $blockTotal = $kevaCoin->getblockcount(); - if (!$blockTotal) { + if (false === $blockTotal) { echo "API connection error.\n"; exit; }