MDL-13360 fixed regression - notifications going more than once a day; merged from MOODLE_19_STABLE
MDL-13360 fixed regression - notifications going more than once a day; merged from MOODLE_19_STABLE

dilawar/moodle