mirror of
https://github.com/itflow-org/itflow
synced 2026-03-01 03:14:52 +00:00
Fix Exports while in Client Overview some were failing due to missing client_id var and some were not logging the client_id if in the client section
This commit is contained in:
@@ -336,6 +336,7 @@ if (isset($_POST['export_domains_csv'])) {
|
||||
$client_query = "WHERE domain_client_id = $client_id";
|
||||
} else {
|
||||
$client_query = '';
|
||||
$client_id = 0;
|
||||
}
|
||||
|
||||
$sql = mysqli_query($mysqli,"SELECT * FROM domains $client_query ORDER BY domain_name ASC");
|
||||
@@ -371,7 +372,7 @@ if (isset($_POST['export_domains_csv'])) {
|
||||
}
|
||||
|
||||
// Logging
|
||||
logAction("Domain", "Export", "$session_name exported $num_rows domain(s)");
|
||||
logAction("Domain", "Export", "$session_name exported $num_rows domain(s)", $client_id);
|
||||
|
||||
exit;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user