[*] code review

This commit is contained in:
rsgrinko committed 2021-12-19 14:40:18 +03:00
1 parent 4a9d42d0cd
commit b267e4f912
13 files changed
+409 -1022

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ if (isset($_REQUEST['id']) and !empty($_REQUEST['id']) and CUser::isAdmin()) {
$cacheId = md5('CUser::getFields_' . $userId);
if(isset($_REQUEST['save']) and $_REQUEST['save'] == 'Y'):
$DB->update('users', array('id' => $userId), array('name' => $_REQUEST['name'], 'email' => $_REQUEST['email'], 'image' => $_REQUEST['image']));
$DB->update('users', ['id' => $userId], ['name' => $_REQUEST['name'], 'email' => $_REQUEST['email'], 'image' => $_REQUEST['image']]);
CCache::del($cacheId);
CEvents::add('Изменен профиль пользователя с ID: '.$userId.', инициатор ID: '.CUser::$id.' ('.$USER['login'].')', 'notice', 'user');
echo '<script>alert("Профиль успешно отредактирован");</script>';