From 89ffadcc6e071021e4bdaccff20b427ff7378f3b Mon Sep 17 00:00:00 2001 From: sparkyx Date: Tue, 15 Mar 2005 18:46:47 +0000 Subject: [PATCH] Fix Bug for centralized jrn (export csv) --- html/jrn_csv.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/html/jrn_csv.php b/html/jrn_csv.php index 247282eee..b6f56f8f9 100644 --- a/html/jrn_csv.php +++ b/html/jrn_csv.php @@ -38,7 +38,7 @@ if ( $User->CheckAction($cn,IMP) == 0 || } - $p_cent=( isset ( $_POST['central']) )?'on':'off'; + $p_cent=( isset ( $_POST['central']) )?$_POST['central']:'off'; $Jrn=new jrn($cn,$_POST['jrn_id']); @@ -47,7 +47,8 @@ $Jrn->GetRow( $_POST['from_periode'], $_POST['to_periode'], $p_cent); - + if ( count($Jrn->row) == 0) + exit; foreach ( $Jrn->row as $op ) { // should clean description : remove tag and '; char $desc=$op['description'];