Based on experimental investigations using specimens with different grades of porosity, a significant influence of the material condition of die-cast magnesium alloys on the accuracy of fatigue-life estimation according to the local-strain approach is verified if the data-base is not related to the microstructure of the component. In order to address this transferability issue, a porosity-depending formulation is proposed. Based on a sensitivity analysis, a simplified, empirical engineering approach has been derived that describes the effect of the inherent porosity on fatigue strength via the fatiguestrength exponent b. Furthermore, it is shown that the degradation of the fatigue-behaviour in chloride-containing media is not simply determined by the external corrosive attack, but also influenced by inner defects competing with the environmental impact.