Use something like this and it should work:
if (isloggedin() && !isguest()) {
$this->content->text = 'fgdfgdgdgdfgdfg';
} else {
$this->content->text = '';
}
If the content is blank Moodle won't show the block
Use something like this and it should work:
if (isloggedin() && !isguest()) {
$this->content->text = 'fgdfgdgdgdfgdfg';
} else {
$this->content->text = '';
}
If the content is blank Moodle won't show the block