forked from science-ation/science-ation
Fix the broken school rollover after the principal and science head change
This commit is contained in:
parent
078d8bdb0e
commit
fc394ba683
@ -266,7 +266,7 @@
|
|||||||
//award types
|
//award types
|
||||||
$q=mysql_query("SELECT * FROM schools WHERE year='$currentfairyear'");
|
$q=mysql_query("SELECT * FROM schools WHERE year='$currentfairyear'");
|
||||||
echo mysql_error();
|
echo mysql_error();
|
||||||
while($r=mysql_fetch_object($q))
|
while($r=mysql_fetch_object($q)) {
|
||||||
$puid = ($r->principal_uid == null) ? 'NULL' : ("'".intval($r->principal_uid)."'");
|
$puid = ($r->principal_uid == null) ? 'NULL' : ("'".intval($r->principal_uid)."'");
|
||||||
$shuid = ($r->sciencehead_uid == null) ? 'NULL' : ("'".intval($r->sciencehead_uid)."'");
|
$shuid = ($r->sciencehead_uid == null) ? 'NULL' : ("'".intval($r->sciencehead_uid)."'");
|
||||||
|
|
||||||
@ -293,6 +293,7 @@
|
|||||||
'".mysql_real_escape_string($r->projectlimit)."',
|
'".mysql_real_escape_string($r->projectlimit)."',
|
||||||
'".mysql_real_escape_string($r->projectlimitper)."',
|
'".mysql_real_escape_string($r->projectlimitper)."',
|
||||||
'".mysql_real_escape_string($newfairyear)."')");
|
'".mysql_real_escape_string($newfairyear)."')");
|
||||||
|
}
|
||||||
|
|
||||||
echo i18n("Rolling questions")."<br />";
|
echo i18n("Rolling questions")."<br />";
|
||||||
$q = mysql_query("SELECT * FROM questions WHERE year='$currentfairyear'");
|
$q = mysql_query("SELECT * FROM questions WHERE year='$currentfairyear'");
|
||||||
|
Loading…
Reference in New Issue
Block a user