noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 51/65: Correct Add category


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 51/65: Correct Add category
Date: Wed, 09 Sep 2015 08:27:29 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit 8eb932ce83df1341f35763e40c37b9a9af0cf284
Author: Dany De Bontridder <address@hidden>
Date:   Sun Sep 6 07:16:44 2015 +0200

    Correct Add category
---
 html/ajax_card.php          |    5 ++---
 include/class_fiche_def.php |    1 -
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/html/ajax_card.php b/html/ajax_card.php
index 2bd0f8e..c33f2a9 100644
--- a/html/ajax_card.php
+++ b/html/ajax_card.php
@@ -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;
diff --git a/include/class_fiche_def.php b/include/class_fiche_def.php
index 6116061..9962fb7 100644
--- a/include/class_fiche_def.php
+++ b/include/class_fiche_def.php
@@ -197,7 +197,6 @@ $order
      */
     function Add($array)
     {
-        var_dump($array);
         /** 
          * Check needed info
          */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]