From 4651250ddb2c067a4404aa326edea79aae5b1e03 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 24 May 2010 08:56:11 +0000 Subject: [PATCH] Do not show link "viw password" if there is no password --- htdocs/admin/tools/dolibarr_import.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/admin/tools/dolibarr_import.php b/htdocs/admin/tools/dolibarr_import.php index b54c095e7dc..1f8d311f343 100644 --- a/htdocs/admin/tools/dolibarr_import.php +++ b/htdocs/admin/tools/dolibarr_import.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2006-2010 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -122,7 +122,7 @@ if ($db->label == 'MySQL') print '
'; print '
'; - if (empty($_GET["showpass"])) print '
'.$langs->trans("UnHidePassword").''; + if (empty($_GET["showpass"]) && $dolibarr_main_db_pass) print '
'.$langs->trans("UnHidePassword").''; //else print '
'.$langs->trans("HidePassword").''; ?>