noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 15/44: typo


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 15/44: typo
Date: Wed, 26 Dec 2018 04:29:52 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

commit d8c24d9cc7ec08daaeaa25faf779ae91f926188d
Author: Dany De Bontridder <address@hidden>
Date:   Thu Nov 22 11:20:25 2018 +0100

    typo
---
 include/profile.inc.php | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/include/profile.inc.php b/include/profile.inc.php
index 27ced2e..d48cd6a 100644
--- a/include/profile.inc.php
+++ b/include/profile.inc.php
@@ -159,11 +159,11 @@ if (isset($_POST['clone']))
                         where p_id=$2
                        ", array($new_id, $p_id));
         $cn->exec_sql("select menu_complete_dependency($1)",array($new_id));
-        $cn->exec_sql("update profile_menu 
-            set pm_id_dep=(select distinct higher_dep 
-                            from v_menu_dependency as a 
+        $cn->exec_sql("update profile_menu
+            set pm_id_dep=(select distinct higher_dep
+                            from v_menu_dependency as a
                             where
-                            a.pm_id= profile_menu.pm_id) 
+                            a.pm_id= profile_menu.pm_id)
                         where pm_id_dep is null and p_id=$1",array($new_id));
         $cn->commit();
         $p_id=$new_id;
@@ -203,7 +203,7 @@ if (isset($_POST['delete_profil']))
     }
 }
 //************************************
-// Modify the menu 
+// Modify the menu
 //************************************
 if (isset($_POST['mod']))
 {
@@ -213,7 +213,7 @@ if (isset($_POST['mod']))
         $pm_id=$http->post("pm_id", "number");
         // profile id
         $p_id=$http->post("p_id", "number");
-        // display order 
+        // display order
         $p_order=$http->post("p_order", "number");
         // code to add
         $me_code=$http->post("me_code");
@@ -268,7 +268,7 @@ if (isset($_POST['add_menu'])||isset($_POST['add_impress']))
         $p_dep=$http->post("dep","number",null);
         // profile id
         $p_id=$http->post("p_id", "number");
-        // display order 
+        // display order
         $p_order=$http->post("p_order");
         // code to add
         $me_code=$http->post("me_code");
@@ -326,9 +326,9 @@ if (isset($_POST['add_menu'])||isset($_POST['add_impress']))
          * if me_code_dep == -1, it means it is null
          */
         $me_code_dep=($me_code_dep==-1)?null:$me_code_dep;
-        
+
         /*
-         * Do not insert twice the same menu 
+         * Do not insert twice the same menu
          */
         $duplicate = $cn->get_value(" select count(*) from profile_menu where "
                 . " pm_id_dep = $1 and me_code = 
$2",array($pm_id_dep,$me_code));
@@ -348,7 +348,7 @@ if (isset($_POST['add_menu'])||isset($_POST['add_impress']))
     catch (Exception $exc)
     {
         alert($exc->getMessage());
-        $cn->rollback;
+        $cn->rollback();
     }
 }
 
@@ -439,5 +439,5 @@ $dep=$http->post("dep","string","");
         }
         selected_menu=rowid;
     }
-    
-</script>  
\ No newline at end of file
+
+</script>



reply via email to

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