Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion classes/UDFCheck/class.UDFCheckGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,15 @@ public function __construct($parent_gui)
$this->pl = ilUserDefaultsPlugin::getInstance();
$this->ctrl->saveParameter($this, self::IDENTIFIER_CATEGORY);
$this->ctrl->saveParameter($this, self::IDENTIFIER);
$this->ctrl->setParameter($this, UserSettingsGUI::IDENTIFIER, $_GET[UserSettingsGUI::IDENTIFIER]);
// When clicking on the "Configure" tab, the set_id may be undefined.
// To prevent errors, we pass a null value if the parameter is not set.
if (isset($_GET[UserSettingsGUI:: IDENTIFIER])) {
$this->ctrl->setParameter($this, UserSettingsGUI::IDENTIFIER, $_GET[UserSettingsGUI::IDENTIFIER]);
}
else{
$this->ctrl->setParameter($this, UserSettingsGUI:: IDENTIFIER, null);
}

$this->ctrl->saveParameter($parent_gui, UserSettingsGUI::IDENTIFIER);
}

Expand Down