1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-25 10:26:17 +02:00

Don't show message popups for guests

This commit is contained in:
moodler 2007-09-04 06:47:02 +00:00
parent f4d24ff5c3
commit edea42f96a

@ -6805,7 +6805,7 @@ function message_popup_window() {
$popuplimit = 30; // Minimum seconds between popups
if (!defined('MESSAGE_WINDOW')) {
if (isset($USER->id)) {
if (isset($USER->id) and !isguestuser()) {
if (!isset($USER->message_lastpopup)) {
$USER->message_lastpopup = 0;
}