diff --git a/htdocs/admin/company.php b/htdocs/admin/company.php index 1c6a0c00145..b2b7efc3a1c 100644 --- a/htdocs/admin/company.php +++ b/htdocs/admin/company.php @@ -262,17 +262,17 @@ if ($action == 'removelogo') require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php'; $logofile=$conf->mycompany->dir_output.'/logos/'.$mysoc->logo; - dol_delete_file($logofile); + if ($mysoc->logo != '') dol_delete_file($logofile); dolibarr_del_const($db, "MAIN_INFO_SOCIETE_LOGO",$conf->entity); $mysoc->logo=''; $logosmallfile=$conf->mycompany->dir_output.'/logos/thumbs/'.$mysoc->logo_small; - dol_delete_file($logosmallfile); + if ($mysoc->logo_small != '') dol_delete_file($logosmallfile); dolibarr_del_const($db, "MAIN_INFO_SOCIETE_LOGO_SMALL",$conf->entity); $mysoc->logo_small=''; $logominifile=$conf->mycompany->dir_output.'/logos/thumbs/'.$mysoc->logo_mini; - dol_delete_file($logominifile); + if ($mysoc->logo_mini != '') dol_delete_file($logominifile); dolibarr_del_const($db, "MAIN_INFO_SOCIETE_LOGO_MINI",$conf->entity); $mysoc->logo_mini=''; } @@ -370,7 +370,6 @@ if ($action == 'edit' || $action == 'updateedit') print ''."\n"; // Web - print '