diff --git a/blocks/login/block_login.php b/blocks/login/block_login.php index 2db70cead677f..37442579795c9 100644 --- a/blocks/login/block_login.php +++ b/blocks/login/block_login.php @@ -40,7 +40,7 @@ function get_content () { $this->content->footer = ''; $this->content->text = ''; - if (empty($USER->loggedin) or isguest()) { // Show the block + if (!isloggedin() or isguestuser()) { // Show the block $this->content->text .= "\n".'