diff --git a/htdocs/admin/index.php b/htdocs/admin/index.php
index c27ec52072a..89dfa00dc80 100644
--- a/htdocs/admin/index.php
+++ b/htdocs/admin/index.php
@@ -88,8 +88,19 @@ if ( (isset($_POST["action"]) && $_POST["action"] == 'update')
}
}
+if ($_GET["action"] == 'removelogo')
+{
+ $logofile=$conf->societe->dir_logos.'/'.$mysoc->logo;
+ @unlink($logofile);
+ dolibarr_del_const($db, "MAIN_INFO_SOCIETE_LOGO");
+}
+
+/*
+ * Affichage page
+ */
+
llxHeader();
$form = new Form($db);
@@ -178,9 +189,11 @@ if ((isset($_GET["action"]) && $_GET["action"] == 'edit')
print '
| '.$langs->trans("Logo").' (png,jpg) | ';
print ' |