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 fail
pull/762/merge
Iglocska 2015-12-29 20:08:09 +01:00
parent 007b4dbfae
commit af062c7b84
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}