remove unused code

main
msquare 8 years ago
parent 3f4be08865
commit 9e884bb444

@ -225,7 +225,7 @@ function user_angeltype_delete_controller() {
* Update an UserAngelType. * Update an UserAngelType.
*/ */
function user_angeltype_update_controller() { function user_angeltype_update_controller() {
global $user, $privileges; global $privileges;
if (! in_array('admin_angel_types', $privileges)) { if (! in_array('admin_angel_types', $privileges)) {
error(_("You are not allowed to set coordinator rights.")); error(_("You are not allowed to set coordinator rights."));

@ -30,8 +30,9 @@ function strip_request_item($name) {
* eine ID sein könnte. * eine ID sein könnte.
*/ */
function test_request_int($name) { function test_request_int($name) {
if (isset($_REQUEST[$name])) if (isset($_REQUEST[$name])) {
return preg_match("/^[0-9]*$/", $_REQUEST[$name]); return preg_match("/^[0-9]*$/", $_REQUEST[$name]);
}
return false; return false;
} }

Loading…
Cancel
Save