1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 01:54:12 +02:00

Fixes #4766 User-audit login event data.

This commit is contained in:
Cameron
2022-05-10 10:21:05 -07:00
parent 7a9610740a
commit 903f51561f
4 changed files with 7 additions and 7 deletions

View File

@@ -449,13 +449,13 @@ class e_admin_log
* Log user-related events
* @param string $event_type
* @param array|string $event_data is an array of data fields whose keys and values are logged (usually user data, but doesn't have to be - can add messages here)
* @param string $id
* @param string $u_name
* @param int $id user-id
* @param string $u_name user-name
* both $id and $u_name are left blank except for admin edits and user login, where they specify the id and login name of the 'target' user
*
* @return bool
*/
function user_audit($event_type, $event_data, $id = '', $u_name = '')
function user_audit($event_type, $event_data, $id = null, $u_name = '')
{
list($time_usec, $time_sec) = explode(' ', microtime()); // Log event time immediately to minimise uncertainty