Minor improvements (#915)

This commit is contained in:
Roman Kelesidis 2023-09-25 23:01:04 +07:00 committed by GitHub
commit 7ff2437186
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View file

@ -11,10 +11,10 @@ if (!defined('IN_AJAX')) {
die(basename(__FILE__));
}
global $userdata;
global $userdata, $lang;
if (!IS_SUPER_ADMIN) {
$this->ajax_die('not auth');
$this->ajax_die($lang['NOT_AUTHORISED']);
}
array_deep($this->request, 'trim');