Correct Add category

This commit is contained in:
Dany De Bontridder 2015-09-06 07:16:44 +02:00
parent b465275157
commit 8eb932ce83
2 changed files with 2 additions and 4 deletions

View file

@ -517,8 +517,7 @@ case 'scc':
{
$script=create_script("removeDiv('$ctl')");
$html.=$script;
if ( strlen(trim($_GET['nom_mod'])) != 0 &&
strlen(trim($_GET['class_base'])) != 0 )
if ( strlen(trim($_GET['nom_mod'])) != 0 )
{
$array=array("FICHE_REF"=>$cat,
"nom_mod"=>$_GET['nom_mod'],
@ -534,7 +533,7 @@ case 'scc':
}
else
{
$script="alert_box('"._("Le nom et la classe base ne peuvent être vide")."')";
$script="alert_box('"._("Le nom ne peut pas être vide")."')";
$html.=create_script($script);
$invalid=1;

View file

@ -197,7 +197,6 @@ $order
*/
function Add($array)
{
var_dump($array);
/**
* Check needed info
*/