We give an integral version and a refinement of M. Niezgoda's extension of the variant of Jensen's inequality given by A. McD. Mercer.