In this short note, we generalize a recent result of Zhang [A generalization of Baer's theorem, Comm. Algebra (2017), doi: 10.1080/00927872.2017.12872 75].