|
|
@ -60,8 +60,8 @@ function isAPhoneNumber(){
|
|
|
|
// $user_ida, $char_1_Type, $char_name
|
|
|
|
// $user_ida, $char_1_Type, $char_name
|
|
|
|
function handleErstelleCharRequest($user, $type, $name, $bild){
|
|
|
|
function handleErstelleCharRequest($user, $type, $name, $bild){
|
|
|
|
$race = getRaceById($type);
|
|
|
|
$race = getRaceById($type);
|
|
|
|
$type = getRaceTypeById($race['id']);
|
|
|
|
$rtype = getRaceTypeById($race['id']);
|
|
|
|
if($race == NULL || $race['special'] || $type['gm_only']) {
|
|
|
|
if($race == NULL || $race['special'] || $rtype['gm_only']) {
|
|
|
|
displayErrorMessage(NULL,'Rasse kann nicht erstellt werden!',displayHistoryBackLink());
|
|
|
|
displayErrorMessage(NULL,'Rasse kann nicht erstellt werden!',displayHistoryBackLink());
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|