mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 10:54:52 +00:00
Updated Cron to use new logAction function, also updated logAction cron to make session_user_id 0 if not set
This commit is contained in:
@@ -1341,5 +1341,9 @@ function appNotify($type, $details, $action = null, $client_id = 0, $entity_id =
|
||||
function logAction($type, $action, $description, $client_id = 0, $entity_id = 0) {
|
||||
global $mysqli, $session_user_agent, $session_ip, $session_user_id;
|
||||
|
||||
if (empty($session_user_id)) {
|
||||
$session_user_id = 0;
|
||||
}
|
||||
|
||||
mysqli_query($mysqli, "INSERT INTO logs SET log_type = '$type', log_action = '$action', log_description = '$description', log_ip = '$session_ip', log_user_agent = '$session_user_agent', log_client_id = $client_id, log_user_id = $session_user_id, log_entity_id = $entity_id");
|
||||
}
|
||||
Reference in New Issue
Block a user