Skip to content

Commit

Permalink
Strips html tags from question text before adding to select box. (For…
Browse files Browse the repository at this point in the history
…got to strip from short questions in last change)

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@1141 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Aug 26, 2004
1 parent b2db42e commit fb5f30b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/conditions.php
Expand Up @@ -273,7 +273,7 @@
foreach($theserows as $rows)
{
if (strlen($rows['question']) > 30) {$shortquestion=$rows['title'].": ".substr(strip_tags($rows['question']), 0, 30).".. ";}
else {$shortquestion=$rows['title'].": ".$rows['question'];}
else {$shortquestion=$rows['title'].": ".strip_tags($rows['question']);}
if ($rows['type'] == "A" || $rows['type'] == "B" || $rows['type'] == "C" || $rows['type'] == "E" || $rows['type'] == "F" || $rows['type'] == "H")
{
$aquery="SELECT * FROM {$dbprefix}answers WHERE qid={$rows['qid']} ORDER BY sortorder, answer";
Expand Down

0 comments on commit fb5f30b

Please sign in to comment.