From 899eaab1b8e1dc22e7c56cc933e3c07f724d6346 Mon Sep 17 00:00:00 2001 From: bradymiller Date: Sat, 27 Apr 2013 23:20:03 -0700 Subject: [PATCH] Another fix to upgrade clickoptions in windows --- library/sql_upgrade_fx.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/sql_upgrade_fx.php b/library/sql_upgrade_fx.php index 0f6b7be3a..dc4262e49 100644 --- a/library/sql_upgrade_fx.php +++ b/library/sql_upgrade_fx.php @@ -161,8 +161,8 @@ function clickOptionsMigrate() { if (preg_match('/^#/', $line_of_text)) continue; if ($line_of_text == "") continue; $parts = explode('::', $line_of_text); - $parts[0] = trim($parts[0]); - $parts[1] = trim($parts[1]); + $parts[0] = trim(str_replace("\r\n","",$parts[0])); + $parts[1] = trim(str_replace("\r\n","",$parts[1])); if ($parts[0] != $prev) { $sql1 = "INSERT INTO list_options (`list_id`,`option_id`,`title`) VALUES (?,?,?)"; SqlStatement($sql1, array('lists',$parts[0].'_issue_list',ucwords(str_replace("_"," ",$parts[0])).' Issue List') ); -- 2.11.4.GIT