report page admin issue

This commit is contained in:
2025-11-01 10:39:55 +00:00
parent 36e4935a98
commit 8608b92e72

View File

@@ -103,7 +103,7 @@ function report_view($type, $dt) {
}
// ----- if admin filter option -----
if($_SESSION['type'] === 'admin' || $_SESSION['type'] === 'bm' && isset($_GET['agent']) && $_GET['agent']!="") {
if( ($_SESSION['type'] === 'admin' || $_SESSION['type'] === 'bm') && isset($_GET['agent']) && $_GET['agent']!="") {
$agentId = $conn->real_escape_string($_GET['agent']);
$sql .= " AND `AA_AGENT`='".$agentId."'";
}