mirror of https://github.com/MISP/MISP
Fixed a typo in the logging that prevented users from being edited, fixes #586
- A wrong variable lookup in the logging caused user edits to failpull/762/merge
parent
007b4dbfae
commit
af062c7b84
|
@ -833,12 +833,12 @@ class UsersController extends AppController {
|
|||
'email' => $this->Auth->user('email'),
|
||||
'action' => $action,
|
||||
'title' => $description,
|
||||
'change' => isset($fieldsResult) ? $fieldResult : ''));
|
||||
'change' => isset($fieldsResult) ? $fieldsResult : ''));
|
||||
|
||||
// write to syslogd as well
|
||||
App::import('Lib', 'SysLog.SysLog');
|
||||
$syslog = new SysLog();
|
||||
if (isset($fieldsResult) && $fieldResult) $syslog->write('notice', $description . ' -- ' . $action . ' -- ' . $fieldsResult);
|
||||
if (isset($fieldsResult) && $fieldsResult) $syslog->write('notice', $description . ' -- ' . $action . ' -- ' . $fieldsResult);
|
||||
else $syslog->write('notice', $description . ' -- ' . $action);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue