Little return value fix

This commit is contained in:
Gabor Gyorvari
2026-06-02 06:46:11 +02:00
parent c9e4050b7d
commit 55e75079df

View File

@@ -820,11 +820,12 @@ class MalwareScanner
{ {
$ctx = stream_context_create(array('http' => array('timeout' => 30))); $ctx = stream_context_create(array('http' => array('timeout' => 30)));
$latest_hash = trim(file_get_contents($url . '/database/compressed.sha256', false, $ctx)); $latest_hash = file_get_contents($url . '/database/compressed.sha256', false, $ctx);
if ($latest_hash === false) { if ($latest_hash === false) {
$this->error('Unable to download database checksum'); $this->error('Unable to download database checksum');
return false; return false;
} }
$latest_hash = trim($latest_hash);
$file = __DIR__ . '/whitelist.dat'; $file = __DIR__ . '/whitelist.dat';
if (is_readable($file)) { if (is_readable($file)) {