mirror of
				https://github.com/moudsen/mailGraph
				synced 2025-10-31 09:37:39 +01:00 
			
		
		
		
	Fixed a bug when configuration file is empty
This commit is contained in:
		| @@ -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; | ||||
|     } | ||||
| ?> | ||||
| ?> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 moudsen
					moudsen