Skip to content

Commit

Permalink
Fixed bug #691 - Code designed to accomodate a feature that was never…
Browse files Browse the repository at this point in the history
… used? - Adding of answer code... Poor method in any case..

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/phpsurveyor@2514 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
David Olivier committed Mar 7, 2007
1 parent 5bf6010 commit 2ccd35a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions common.php
Original file line number Diff line number Diff line change
Expand Up @@ -1281,10 +1281,10 @@ function returnquestiontitlefromfieldcode($fieldcode)
function getsidgidqid($fieldcode)
{
list($fsid, $fgid, $fqid) = split("X", $fieldcode);
$legitqs=getLegitQids($fsid);
//$legitqs=getLegitQids($fsid);
if (!$fqid) {$fqid=0;}
$oldfqid=$fqid;
while(!in_array($fqid, $legitqs))
/*$oldfqid=$fqid;
while (!in_array($fqid, $legitqs))
{
$fqid=substr($fqid, 0, strlen($fqid)-1);
}
Expand All @@ -1296,8 +1296,9 @@ function getsidgidqid($fieldcode)
else
{
$faid="";
}
return array("sid"=>$fsid, "gid"=>$fgid, "qid"=>$fqid, "aid"=>$faid);
}*/
//return array("sid"=>$fsid, "gid"=>$fgid, "qid"=>$fqid, "aid"=>$faid);
return array("sid"=>$fsid, "gid"=>$fgid, "qid"=>$fqid);
}

/*
Expand Down

0 comments on commit 2ccd35a

Please sign in to comment.