MDL-29005 blocks : clarified comment
authorAparup Banerjee <aparup@moodle.com>
Tue, 30 Aug 2011 03:17:50 +0000 (11:17 +0800)
committerAparup Banerjee <aparup@moodle.com>
Tue, 30 Aug 2011 03:17:50 +0000 (11:17 +0800)
blocks/community/forms.php

index 6cb92e6..141bf66 100644 (file)
@@ -155,7 +155,7 @@ class community_hub_search_form extends moodleform {
                                     array('class' => 'hubscreenshot'));
                     $hubdescriptiontext = html_writer::tag('span', format_text($hub['description'], FORMAT_PLAIN),
                                     array('class' => 'hubdescription'));
                                     array('class' => 'hubscreenshot'));
                     $hubdescriptiontext = html_writer::tag('span', format_text($hub['description'], FORMAT_PLAIN),
                                     array('class' => 'hubdescription'));
-                    if (isset($hub['enrollablecourses'])) { //needed for Moodle version < 2011081700
+                    if (isset($hub['enrollablecourses'])) { //check needed to avoid warnings for Moodle version < 2011081700
                         $additionaldesc = get_string('enrollablecourses', 'block_community') . ': ' . $hub['enrollablecourses'] . ' - ' .
                                 get_string('downloadablecourses', 'block_community') . ': ' . $hub['downloadablecourses'];
                         $hubdescriptiontext .= html_writer::tag('span', $additionaldesc,
                         $additionaldesc = get_string('enrollablecourses', 'block_community') . ': ' . $hub['enrollablecourses'] . ' - ' .
                                 get_string('downloadablecourses', 'block_community') . ': ' . $hub['downloadablecourses'];
                         $hubdescriptiontext .= html_writer::tag('span', $additionaldesc,