mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 10:54:52 +00:00
Updated vendor post to use new logAction function, tidy and added more details to logging
This commit is contained in:
@@ -31,7 +31,7 @@ if (isset($_POST['add_transfer'])) {
|
||||
$transfer_id = mysqli_insert_id($mysqli);
|
||||
|
||||
// Logging
|
||||
logAction("Account Transfer", "Create", "$session_name transferred $amount from account $source_account_name to $destination_account_name", 0 , $transfer_id);
|
||||
logAction("Account Transfer", "Create", "$session_name transferred $amount from account $source_account_name to $destination_account_name", 0, $transfer_id);
|
||||
|
||||
$_SESSION['alert_message'] = "Transferred <strong>$amount</strong> from <strong>$source_account_name</strong> to <strong>$destination_account_name</strong>";
|
||||
|
||||
@@ -57,7 +57,7 @@ if (isset($_POST['edit_transfer'])) {
|
||||
mysqli_query($mysqli,"UPDATE transfers SET transfer_method = '$transfer_method', transfer_notes = '$notes' WHERE transfer_id = $transfer_id");
|
||||
|
||||
// Logging
|
||||
logAction("Account Transfer", "Edit", "$session_name edited transfer", 0 , $transfer_id);
|
||||
logAction("Account Transfer", "Edit", "$session_name edited transfer", 0, $transfer_id);
|
||||
|
||||
$_SESSION['alert_message'] = "Transfer edited";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user