T201704040053

This commit is contained in:
Leander
2017-04-04 00:53:29 +02:00
parent 55aff9f0e4
commit d72bf7fd36
3 changed files with 36 additions and 10 deletions

View File

@@ -60,14 +60,18 @@ class Database
return 'User name does not match rules. User name must be 6 to 20 characters and consist of English letters and numbers only.';
case 11102:
return 'User name already exists. Please pick a different name.';
case 12101:
return 'User name not specified. This is an internal error.';
case 12101 || 13101:
return 'User ID not specified. This is an internal error.';
case 12102:
return 'A game without a question is not possible. Please select new game length.';
case 12103:
return 'Sorry, we only have '.$values[0].' questions. Please try again.';
case 12104:
return 'The specified user name does not exist.';
return 'The specified user name does not exist. This is an internal error.';
case 13102:
return 'No valid time specified. This is an internal error.';
case 13103:
return 'No chosen answer specified. This is an internal error.';
default:
return 'An unknown error occurred.';
}