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:
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user