Skip to content

Commit

Permalink
Revision bug fix to token link. It was trying to display links on pri…
Browse files Browse the repository at this point in the history
…vate surveys.

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@136 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
James Richards committed Mar 24, 2003
1 parent fc556d6 commit bd8be1e
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions admin/browse.php
Expand Up @@ -352,14 +352,19 @@
echo "\t\t\t<a href='browse.php?sid=$sid&action=id&id={$dtrow['id']}' title='View this record'>";
echo "{$dtrow['id']}</a>\n";

$SQL = "Select * FROM tokens_$sid WHERE token='{$dtrow[$fnames[0][0]]}'";
$SQLResult = mysql_query($SQL) or die(mysql_error());
$TokenRow = mysql_fetch_assoc($SQLResult);
echo "\t\t<td align='center'><font size='1'>\n";
echo "\t\t<a href='tokens.php?sid=$sid&action=edit&tid={$TokenRow['tid']}' title='Edit this token'>";
echo "{$dtrow['token']}</a>\n";
$i = 0;
if ($private == "N")
{
$SQL = "Select * FROM tokens_$sid WHERE token='{$dtrow['token']}'";
$SQLResult = mysql_query($SQL) or die(mysql_error());
$TokenRow = mysql_fetch_assoc($SQLResult);
echo "\t\t<td align='center'><font size='1'>\n";
echo "\t\t<a href='tokens.php?sid=$sid&action=edit&tid={$TokenRow['tid']}' title='Edit this token'>";
echo "{$dtrow['token']}</a>\n";
$i++;
}

for ($i=1; $i<=$fncount; $i++)
for ($i; $i<=$fncount; $i++)
{
echo "\t\t<td align='center'><font size='1'>";
echo htmlspecialchars($dtrow[$fnames[$i][0]]);
Expand Down

0 comments on commit bd8be1e

Please sign in to comment.