diff --git a/web/validator-check-logos.php b/web/validator-check-logos.php
index 89c2c13ef13e80bb9ec7c062dc7ccac0c3148b07..0300b5409f95347a86104bc6590be7f18b2503cb 100644
--- a/web/validator-check-logos.php
+++ b/web/validator-check-logos.php
@@ -67,7 +67,12 @@ foreach ($_POST as $k=>$v) {
          fclose($fp);
          if ($suffix == 'svg') {
            $f = fopen($fileName, 'r');
-           $imageData = fread($f, filesize($fileName));
+           if ($f && filesize($fileName) > 0) {
+             $imageData = fread($f, filesize($fileName));
+           } else {
+             $imageData = "";
+             $result[] =  'ERROR: Could not download logo';
+           }
          }
        } else {
          $fileName = '/tmp/testlogo'.bin2hex(openssl_random_pseudo_bytes(10));