Merge branch 'main' of github.com:moudsen/mailGraph into main

This commit is contained in:
Mark Oudsen 2021-10-06 11:15:33 +02:00
commit b7e2062486

View File

@ -27,7 +27,7 @@
$content = file_get_contents($argv[1]);
$data = json_decode($content,TRUE);
if ($data==NULL)
if (($data==NULL) && (sizeof($content)>2))
{
echo 'Invalid JSON format in config file?!'.$cCRLF;
die;
@ -138,4 +138,4 @@
default:
echo 'Unknown command?'.$cCRLF;
}
?>
?>