turn this block off when CFG->messaging is off

This commit is contained in:
toyomoyo
2007-11-22 01:16:37 +00:00
parent 9e4ae46a4b
commit 3202bd7416
+4
View File
@@ -9,6 +9,10 @@ class block_messages extends block_base {
function get_content() {
global $USER, $CFG;
if (!$CFG->messaging) {
return '';
}
if ($this->content !== NULL) {
return $this->content;
}