diff --git a/CONTENT/ROOT_URI/Admin/Report.php b/CONTENT/ROOT_URI/Admin/Report.php index 542eb16..a84e08c 100644 --- a/CONTENT/ROOT_URI/Admin/Report.php +++ b/CONTENT/ROOT_URI/Admin/Report.php @@ -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."'"; }