Skip to content

Commit

Permalink
Fixed an exception when course has only the topic 0 and it is over th…
Browse files Browse the repository at this point in the history
…e tabs.
  • Loading branch information
davidherney committed Jan 26, 2023
1 parent 3178c47 commit 5006e42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions classes/tabs.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ public function count_tabs() {
public function get_secondlist() : object {

$tabstree = new \stdClass();
$tabstree->tabs = [];

foreach ($this->tabslist as $tab) {
if ($tab->selected) {
Expand Down

0 comments on commit 5006e42

Please sign in to comment.