Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed bug 843912 - delete group incorrectly deleted answer sets for a…
…ll questions in survey.

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@779 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Nov 20, 2003
1 parent 41fcbdc commit a22af2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/database.php
Expand Up @@ -112,7 +112,7 @@
elseif ($action == "delgroupall")
{
if (!isset($gid)) {returnglobal('gid');}
$query = "SELECT qid FROM {$dbprefix}groups, {$dbprefix}questions WHERE {$dbprefix}groups.gid={$dbprefix}questions.gid";
$query = "SELECT qid FROM {$dbprefix}groups, {$dbprefix}questions WHERE {$dbprefix}groups.gid={$dbprefix}questions.gid AND {$dbprefix}groups.gid=$gid";
if ($result = mysql_query($query))
{
$qtodel=mysql_num_rows($result);
Expand Down

0 comments on commit a22af2c

Please sign in to comment.