Skip to content

Commit

Permalink
Travis!
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Feb 2, 2021
1 parent 25a80ea commit c4e460a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function get_settings() {
foreach ($this->settings as $settingname => $settingvalue) {
if (isset($settingvalue)) {
$settingvtype = gettype($settingvalue);
if ((($settingvtype == 'string') && ($settingvalue === '-')) ||
if ((($settingvtype == 'string') && ($settingvalue === '-')) ||
(($settingvtype == 'integer') && ($settingvalue === 0))) {
// Default value indicator is a hyphen or a number equal to 0.
$this->settings[$settingname] = get_config('format_topcoll', 'default'.$settingname);
Expand Down Expand Up @@ -1317,7 +1317,7 @@ public function update_course_format_options($data, $oldcourse = null) {
$maxsection = $DB->get_field_sql('SELECT max(section) from {course_sections}
WHERE course = ?', array($this->courseid));
if ($maxsection) {
// If there are no sections, or just default 0-section, 'numsections' will be set to default
// If there are no sections, or just default 0-section, 'numsections' will be set to default.
$data['numsections'] = $maxsection;
}
}
Expand Down
2 changes: 1 addition & 1 deletion renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class format_topcoll_renderer extends format_section_renderer_base {
protected $tccolumnpadding = 0; // Default padding in pixels of the column(s).
protected $mobiletheme = false; // As not using a mobile theme we can react to the number of columns setting.
protected $tablettheme = false; // As not using a tablet theme we can react to the number of columns setting.
protected $courseformat = null; // Our course format object as defined in lib.php;
protected $courseformat = null; // Our course format object as defined in lib.php.
protected $tcsettings; // Settings for the format - array.
protected $defaulttogglepersistence; // Default toggle persistence.
protected $defaultuserpreference; // Default user preference when none set - bool - true all open, false all closed.
Expand Down

0 comments on commit c4e460a

Please sign in to comment.