Fix deprecated code

This commit is contained in:
Laurent Destailleur 2019-09-02 03:43:24 +02:00
parent 658c10a305
commit 64ebbec966

View File

@ -812,7 +812,9 @@ if ($rowid > 0)
if (empty($reshook)) if (empty($reshook))
{ {
print '<br><br><table class="border" width="100%">'; print '<br><br><table class="border" width="100%">';
foreach($extrafields->attribute_label as $key=>$label) if (is_array($extrafields->attributes['adherent_type']['label']))
{
foreach($extrafields->attributes['adherent_type']['label'] as $key=>$label)
{ {
if (isset($_POST["options_" . $key])) { if (isset($_POST["options_" . $key])) {
if (is_array($_POST["options_" . $key])) { if (is_array($_POST["options_" . $key])) {
@ -822,12 +824,13 @@ if ($rowid > 0)
$value = $_POST["options_" . $key]; $value = $_POST["options_" . $key];
} }
} else { } else {
$value = $adht->array_options["options_" . $key]; $value = $object->array_options["options_" . $key];
} }
print '<tr><td width="30%">'.$label.'</td><td>'; print '<tr><td width="30%">'.$label.'</td><td>';
print $extrafields->showInputField($key, $value); print $extrafields->showInputField($key, $value);
print "</td></tr>\n"; print "</td></tr>\n";
} }
}
print '</table><br><br>'; print '</table><br><br>';
} }