Issue #1461732 by filijonka, marcingy, Cottser, udaksh, swentel: Fixed PHP error while publishing comment.