diff --git a/packager/packagelinks.pas b/packager/packagelinks.pas index 571c77f8cd..2d555f6ca1 100644 --- a/packager/packagelinks.pas +++ b/packager/packagelinks.pas @@ -548,8 +548,10 @@ begin NewPkgLink.NotFoundCount:= XMLConfig.GetValue(ItemPath+'NotFoundCount/Value',0); - CfgStrToDate(XMLConfig.GetValue(ItemPath+'LastUsed/Value',''), - NewPkgLink.FLastUsed); + if not CfgStrToDate(XMLConfig.GetValue(ItemPath+'LastUsed/Value',''), + NewPkgLink.FLastUsed) + then + NewPkgLink.FLastUsed := 0; if NewPkgLink.MakeSense then begin FUserLinksSortID.Add(NewPkgLink);