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; }