Skip to content

Commit

Permalink
Fixed bug with copyquestion where copyanswers=='Y'. Was assuming regi…
Browse files Browse the repository at this point in the history
…ster_globals=on. Changed from '$oldqid' to '".returnglobal('oldqid')."'

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@846 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Jan 28, 2004
1 parent 915d7c7 commit b1d4dd2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion admin/database.php
Expand Up @@ -233,7 +233,9 @@
$q2 = "SELECT qid FROM {$dbprefix}questions ORDER BY qid DESC LIMIT 1";
$r2 = mysql_query($q2);
while ($qr2 = mysql_fetch_array($r2)) {$newqid = $qr2['qid'];}
$q1 = "SELECT * FROM {$dbprefix}answers WHERE qid='$oldqid' ORDER BY code";
$q1 = "SELECT * FROM {$dbprefix}answers WHERE qid='"
. returnglobal('oldqid')
. "' ORDER BY code";
$r1 = mysql_query($q1);
while ($qr1 = mysql_fetch_array($r1))
{
Expand Down

0 comments on commit b1d4dd2

Please sign in to comment.