A small patch. Allows registration id's in the user field with a zero value to be handled the same way as a null value.

This commit is contained in:
jacob 2012-02-08 21:30:37 +00:00
parent 6ea87600da
commit f16f5b6211

View File

@ -450,7 +450,7 @@ function addRegistration($userId){
return "register_participants.inc.php::addRegistration -> user not found";
}
if($row['registrations_id'] != null){
if(!$row['registrations_id']){
return "register_participants.inc.php::addRegistration -> user already has a project registered";
}