From fc394ba6838ec86c40ed350d861b87bef5443868 Mon Sep 17 00:00:00 2001 From: james Date: Mon, 30 Nov 2009 19:10:14 +0000 Subject: [PATCH] Fix the broken school rollover after the principal and science head change --- config/rollover.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/rollover.php b/config/rollover.php index ff749fd..7671b30 100644 --- a/config/rollover.php +++ b/config/rollover.php @@ -266,7 +266,7 @@ //award types $q=mysql_query("SELECT * FROM schools WHERE year='$currentfairyear'"); 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)."'"); $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->projectlimitper)."', '".mysql_real_escape_string($newfairyear)."')"); + } echo i18n("Rolling questions")."
"; $q = mysql_query("SELECT * FROM questions WHERE year='$currentfairyear'");