mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 00:16:46 +02:00
merged fix for warnings
This commit is contained in:
parent
29c7c23082
commit
ffd0ab657b
1 changed files with 3 additions and 1 deletions
|
@ -266,7 +266,9 @@ function selectItemInCheckboxByName(formId, checkName, checked ) {
|
||||||
echo "<input type=\"hidden\" name=\"$user_info_var\" value=\"0\" />";
|
echo "<input type=\"hidden\" name=\"$user_info_var\" value=\"0\" />";
|
||||||
}
|
}
|
||||||
echo "</td></tr>";
|
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)) {
|
if (!empty($instances) && is_array($instances)) {
|
||||||
echo '<tr><td></td><td colspan="3"><table class="restore-form-instances">';
|
echo '<tr><td></td><td colspan="3"><table class="restore-form-instances">';
|
||||||
foreach ($instances as $instance) {
|
foreach ($instances as $instance) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue