encore des erreurs de désinstallation corrigées !

FossilOrigin-Name: 4a86c1b18ea6bef9a5b1ba038e8321d97e2e7657c5a813d4e1bed29116c24695
This commit is contained in:
engel 2022-03-03 13:15:48 +00:00
parent 95c8063083
commit 8147e5791a
5 changed files with 18 additions and 8 deletions

View file

@ -50,7 +50,10 @@ if (f('save') && $form->check('recusfiscaux_config'))
// supprimer la signature précédente, si besoin
if (null !== $plugin->getConfig('signature'))
{
\Garradin\Files\Files::get($plugin->getConfig('signature'))->delete();
$sig_file = \Garradin\Files\Files::get($plugin->getConfig('signature'));
if (null !== $sig_file) {
$sig_file->delete();
}
}
// puis installer la nouvelle
$plugin->setConfig('signature', $_SESSION['sig_file'][0]->path);

View file

@ -26,8 +26,9 @@ h3.personne {
}
#signature
{
padding : 1em 0.5em 0 0.5em;
max-width: 300px;
max-height 150px;
max-height: 150px;
}
dl.config
{