Skip to content

Commit

Permalink
Fix - show certificate default content
Browse files Browse the repository at this point in the history
  • Loading branch information
nosolored committed Nov 19, 2018
1 parent 73f6476 commit af715c5
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions plugin/customcertificate/src/index.php
Expand Up @@ -74,15 +74,6 @@
],
'first'
);
if (!is_array($infoCertificate)) {
$infoCertificate = [
'type_date_expediction' => '',
'year' => '',
'month' => '',
'day' => '',
'date_change' => '',
];
}

$form = new FormValidator(
'formEdit',
Expand Down Expand Up @@ -217,7 +208,13 @@
);

if (!is_array($infoCertificate)) {
$infoCertificate = [];
$infoCertificate = [
'type_date_expediction' => '',
'year' => '',
'month' => '',
'day' => '',
'date_change' => '',
];
}
if (!empty($infoCertificate)) {
$useDefault = true;
Expand Down

0 comments on commit af715c5

Please sign in to comment.