forked from science-ation/science-ation
Only check if the cwsf division id is set once per project, not for each student
This commit is contained in:
parent
2c6568ca22
commit
f3e8762f2e
@ -285,15 +285,15 @@ function xmlCreateRecurse($d)
|
|||||||
$error=true;
|
$error=true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!$winner['division_id'])
|
|
||||||
{
|
|
||||||
echo "<br />";
|
|
||||||
echo error(i18n("Choose a CWSF Division"),"inline");
|
|
||||||
$error=true;
|
|
||||||
|
|
||||||
}
|
|
||||||
echo "<br />";
|
echo "<br />";
|
||||||
}
|
}
|
||||||
|
if(!$winner['division_id'])
|
||||||
|
{
|
||||||
|
echo "<br />";
|
||||||
|
echo error(i18n("Choose a CWSF Division"),"inline");
|
||||||
|
$error=true;
|
||||||
|
}
|
||||||
|
|
||||||
echo "</td><td>";
|
echo "</td><td>";
|
||||||
|
|
||||||
$t=mysql_query("SELECT * FROM projectdivisions WHERE year='".$config['FAIRYEAR']."' AND id='".$winner['projectdivisions_id']."'");
|
$t=mysql_query("SELECT * FROM projectdivisions WHERE year='".$config['FAIRYEAR']."' AND id='".$winner['projectdivisions_id']."'");
|
||||||
|
Loading…
Reference in New Issue
Block a user