diff --git a/lib/functions/validate/function.checkUsername.php b/lib/functions/validate/function.checkUsername.php index f00ea977..fb3f6a8c 100644 --- a/lib/functions/validate/function.checkUsername.php +++ b/lib/functions/validate/function.checkUsername.php @@ -31,7 +31,11 @@ function checkUsername($fieldname, $fielddata, $newfieldvalue, $allnewfieldvalue ) { $returnvalue = array(FORMFIELDS_PLAUSIBILITY_CHECK_OK); } else { - $returnvalue = array(FORMFIELDS_PLAUSIBILITY_CHECK_ERROR, 'accountprefixiswrong'); + $errmsg = 'accountprefixiswrong'; + if ($fieldname == 'customer_mysqlprefix') { + $errmsg = 'mysqlprefixiswrong'; + } + $returnvalue = array(FORMFIELDS_PLAUSIBILITY_CHECK_ERROR, $errmsg); } return $returnvalue; }