Skip to content

Commit

Permalink
dev: deleted percentage signs from an LIKE sql for textanswers. With …
Browse files Browse the repository at this point in the history
…percentage the answer row was never found.

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_dev@7538 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
Tim Wahrendorff committed Aug 27, 2009
1 parent b18bc03 commit c975a2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/statistics_function.php
Expand Up @@ -378,7 +378,7 @@ function generate_statistics($surveyid, $allfields, $q2show='all', $usegraph=0,
//Q - Multiple Short Text
elseif (($firstletter == "T" || $firstletter == "Q" ) && $_POST[$pv] != "")
{
$selects[]=db_quote_id(substr($pv, 1, strlen($pv)))." like '%".$_POST[$pv]."%'";
$selects[]=db_quote_id(substr($pv, 1, strlen($pv)))." like '".$_POST[$pv]."'"; // Deleted the percentage. Makes no sense to me and causes trouble with T and Q questions.
}

//D - Date
Expand Down

0 comments on commit c975a2b

Please sign in to comment.