mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
merged fix for warnings
This commit is contained in:
parent
29c7c23082
commit
ffd0ab657b
@ -266,7 +266,9 @@ function selectItemInCheckboxByName(formId, checkName, checked ) {
|
||||
echo "<input type=\"hidden\" name=\"$user_info_var\" value=\"0\" />";
|
||||
}
|
||||
echo "</td></tr>";
|
||||
$instances = $info->mods[$modname]->instances;
|
||||
if (isset($info->mods[$modname]->instances)) {
|
||||
$instances = $info->mods[$modname]->instances;
|
||||
}
|
||||
if (!empty($instances) && is_array($instances)) {
|
||||
echo '<tr><td></td><td colspan="3"><table class="restore-form-instances">';
|
||||
foreach ($instances as $instance) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user