From 4fadbfc400e61bad0e118faacb968f0e4d6a2208 Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Thu, 3 Jun 2010 10:52:48 +0000 Subject: [PATCH] bug when checking no account to delete --- bureau/admin/adm_dodel.php | 7 ++++++- bureau/locales/fr_FR/LC_MESSAGES/messages.po | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/bureau/admin/adm_dodel.php b/bureau/admin/adm_dodel.php index bc0af0d1..b26103ca 100644 --- a/bureau/admin/adm_dodel.php +++ b/bureau/admin/adm_dodel.php @@ -53,7 +53,12 @@ if($_POST["del_confirm"] == "y"){ } include("adm_list.php"); exit(); -}else{ +} else { + if (!is_array($d) || count($d)==0) { + $error=_("Please check the accounts you want to delete"); + require("adm_list.php"); + exit(); + } include("head.php"); ?> diff --git a/bureau/locales/fr_FR/LC_MESSAGES/messages.po b/bureau/locales/fr_FR/LC_MESSAGES/messages.po index 1622233c..2cb3e617 100644 --- a/bureau/locales/fr_FR/LC_MESSAGES/messages.po +++ b/bureau/locales/fr_FR/LC_MESSAGES/messages.po @@ -2944,3 +2944,8 @@ msgstr "Listes" msgid "DB" msgstr "Bases" +msgid "MB" +msgstr "Mo" + +msgid "Please check the accounts you want to delete" +msgstr "Veuillez cocher les comptes que vous souhaitez effacer"