- Forgot a mysql_num_rows when checking for award selection completion

This commit is contained in:
dave 2007-01-30 06:25:51 +00:00
parent 77226edb5f
commit 91d122ab3e

View File

@ -116,8 +116,8 @@ function specialawardStatus()
$q = mysql_query("SELECT typepref FROM judges WHERE $q = mysql_query("SELECT typepref FROM judges WHERE
id='{$_SESSION['judges_id']}'"); id='{$_SESSION['judges_id']}'");
if(mysql_num_rows($q) != 1) return "incomplete";
$r = mysql_fetch_object($q); $r = mysql_fetch_object($q);
if($r != 1) return "incomplete";
$qq = mysql_query("SELECT COUNT(id) AS num FROM judges_specialaward_sel $qq = mysql_query("SELECT COUNT(id) AS num FROM judges_specialaward_sel
WHERE judges_id='{$_SESSION['judges_id']}' WHERE judges_id='{$_SESSION['judges_id']}'