noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 10/10: Bug : p_mesg is not set with writing r


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 10/10: Bug : p_mesg is not set with writing report
Date: Thu, 27 Aug 2015 01:33:58 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit 44ecba2e586fd5a24946e5277e3c384d137be40d
Author: Dany De Bontridder <address@hidden>
Date:   Thu Aug 27 03:27:10 2015 +0200

    Bug : p_mesg is not set with writing report
---
 include/operation_ods_new.inc.php |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/include/operation_ods_new.inc.php 
b/include/operation_ods_new.inc.php
index 72dcf9f..6b817b0 100644
--- a/include/operation_ods_new.inc.php
+++ b/include/operation_ods_new.inc.php
@@ -65,17 +65,17 @@ if ( isset ($_GET['action']) && ! isset($_POST['correct']))
 {
        if ( $_GET['action']=='use_opd')
        {
-               // get data from predef. operation
-               $op=new Pre_op_advanced($cn);
-        $p_post=null;
-        if ( isset($_REQUEST['pre_def']) && $_REQUEST['pre_def'] != '')
-        {
-            $op->set_od_id($_REQUEST['pre_def']);
-            $p_post=$op->compute_array();
-        }
+            // get data from predef. operation
+            $op=new Pre_op_advanced($cn);
+            $p_post=null;
+            if ( isset($_REQUEST['pre_def']) && $_REQUEST['pre_def'] != '')
+            {
+                $op->set_od_id($_REQUEST['pre_def']);
+                $p_post=$op->compute_array();
+            }
        }
 }
-
+$p_msg=(isset($p_msg))?$p_msg:"";
 print '<p class="notice">'.$p_msg.'</p>';
 echo '<form method="post"  class="print">';
 echo dossier::hidden();



reply via email to

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