forked from science-ation/science-ation
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:
parent
6ea87600da
commit
f16f5b6211
@ -450,7 +450,7 @@ function addRegistration($userId){
|
|||||||
return "register_participants.inc.php::addRegistration -> user not found";
|
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";
|
return "register_participants.inc.php::addRegistration -> user already has a project registered";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user