From 8945953c94e12d04fee702c7255a49f7c036c7bd Mon Sep 17 00:00:00 2001 From: Jason Cleeland Date: Fri, 21 Mar 2003 11:32:25 +0000 Subject: [PATCH] Bugfix: Changed str_replace in insert/update survey to match
in html edit survey section (was causing multiple
's to occur!) git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@106 b72ed6b6-b9f8-46b5-92b4-906544132732 --- admin/database.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/database.php b/admin/database.php index 50b001482f6..4d83fb973bb 100644 --- a/admin/database.php +++ b/admin/database.php @@ -246,7 +246,7 @@ $description = addcslashes($description, "'"); $welcome = addcslashes($welcome, "'"); } - $isquery = "INSERT INTO surveys (sid, short_title, description, admin, active, welcome, expires, adminemail) VALUES ('', '$short_title', '$description', '$admin', 'N', '".str_replace("\n", "
", $welcome)."', '$expires', '$adminemail')"; + $isquery = "INSERT INTO surveys (sid, short_title, description, admin, active, welcome, expires, adminemail) VALUES ('', '$short_title', '$description', '$admin', 'N', '".str_replace("\n", "
", $welcome)."', '$expires', '$adminemail')"; $isresult = mysql_query ($isquery); if ($isresult) { @@ -271,7 +271,7 @@ $welcome = addcslashes($welcome, "'"); } $usquery = "UPDATE surveys SET short_title='$short_title', description='$description',"; - $usquery .= " admin='$admin', welcome='".str_replace("\n", "
", $welcome)."',"; + $usquery .= " admin='$admin', welcome='".str_replace("\n", "
", $welcome)."',"; $usquery .= " expires='$expires', adminemail='$adminemail'"; $usquery .= " WHERE sid=$sid"; $usresult = mysql_query($usquery);