report page admin issue
This commit is contained in:
@@ -103,7 +103,7 @@ function report_view($type, $dt) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ----- if admin filter option -----
|
// ----- 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']);
|
$agentId = $conn->real_escape_string($_GET['agent']);
|
||||||
$sql .= " AND `AA_AGENT`='".$agentId."'";
|
$sql .= " AND `AA_AGENT`='".$agentId."'";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user