From e19cb49b3e33df047f486c083a0027bcd14e2217 Mon Sep 17 00:00:00 2001 From: james Date: Tue, 29 Mar 2005 21:08:47 +0000 Subject: [PATCH] replace both \r and \n when exporting --- admin/reports_judges.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/admin/reports_judges.php b/admin/reports_judges.php index 6f2ceb5..8b4c87d 100644 --- a/admin/reports_judges.php +++ b/admin/reports_judges.php @@ -93,6 +93,8 @@ $q=mysql_query("SELECT firstname"); while($r=mysql_fetch_object($q)) { + $expertise_other=str_replace("\n"," ",$r->expertise_other) + $expertise_other=str_replace("\r","",expertise_other) $table['data'][]=array( $r->id, $r->lastname, @@ -117,7 +119,7 @@ while($r=mysql_fetch_object($q)) $r->years_national, $r->willing_chair, $r->attending_lunch, - str_replace("\n"," ",$r->expertise_other) + $expertise_other ); }