Influence of the Hardy potential in a semilinear heat equation