]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/blobdiff - config/cfgroot/ipblocklist-functions.pl
ipblocklist-functions.pl: Store the local time if no last modified could
[people/mfischer/ipfire-2.x.git] / config / cfgroot / ipblocklist-functions.pl
index 284503a02b1b53f6c46c901968d78703b326cf18..cde81684f4a4c51e6feae9b07a5f85186fb89cd4 100644 (file)
@@ -188,7 +188,11 @@ sub download_and_create_blocklist($) {
        }
 
        # Update the timestamp for the new or modified list.
-       $modified{$list} = $response->last_modified;
+       if($response->last_modified) {
+               $modified{$list} = $response->last_modified;
+       } else {
+               $modified{$list} = time();
+       }
 
        # Write-back the modified timestamps.
        &General::writehash($modified_file, \%modified);