Skip to content

Commit

Permalink
Dev: fixing browse.php
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@8582 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
Thibault Le Meur committed Apr 12, 2010
1 parent c9e8144 commit f5daacc
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions admin/browse.php
Expand Up @@ -164,18 +164,18 @@
$question .='['.$field['scale'].']';
}
$fnames[]=array($field['fieldname'],$question);
if ($position==1)
/**if ($position==1)
{
$fnames[] = array("completed", $clang->gT("Completed"), "0");
if ($surveyinfo['private'] == "N") //add token to top ofl ist is survey is not private
if ($surveyinfo['private'] == "N") //add token to top of list if survey is not private
{
$tokentable = db_table_name('tokens_'.$surveyid);
//$fnames[] = array("token", $clang->gT("Token ID"));
$fnames[] = array("firstname", $clang->gT("First Name"));
$fnames[] = array("lastname", $clang->gT("Last Name"));
$fnames[] = array("email", $clang->gT("Email"));
}
}
}**/
$position++;
}

Expand Down Expand Up @@ -320,10 +320,10 @@
if ($surveyinfo['private'] == "N")
{
$tokentable = db_table_name('tokens_'.$surveyid);
$fnames[] = array("token", "Token", $clang->gT("Token ID"));
$fnames[] = array("firstname", "First Name", $clang->gT("First Name"));
$fnames[] = array("lastname", "Last Name", $clang->gT("Last Name"));
$fnames[] = array("email", "Email", $clang->gT("Email"));
$fnames[] = array("token", "Token", $clang->gT("Token ID"), 0);
$fnames[] = array("firstname", "First Name", $clang->gT("First Name"), 0);
$fnames[] = array("lastname", "Last Name", $clang->gT("Last Name"), 0);
$fnames[] = array("email", "Email", $clang->gT("Email"), 0);
}
$fnames[] = array("submitdate", "Completed", $clang->gT("Completed"), "0", 'D');
}
Expand Down Expand Up @@ -444,7 +444,7 @@
else
{
if ($surveyinfo['private'] == "N")
$dtquery = "SELECT * FROM $surveytable LEFT JOIN $tokentable ON $surveytable.token = $tokentable.tid ";
$dtquery = "SELECT * FROM $surveytable LEFT JOIN $tokentable ON $surveytable.token = $tokentable.token ";
else
$dtquery = "SELECT * FROM $surveytable ";

Expand Down Expand Up @@ -577,7 +577,7 @@
{
$browsedatafield=htmlspecialchars($dtrow[$fnames[$i][0]]);

if ($fnames[$i][4] == 'D' && $fnames[$i][0] != '')
if ( isset($fnames[$i][4]) && $fnames[$i][4] == 'D' && $fnames[$i][0] != '')
{
if ($dtrow[$fnames[$i][0]] == NULL)
$browsedatafield = "N";
Expand Down

0 comments on commit f5daacc

Please sign in to comment.