diff options
| author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-04-23 16:11:28 +0000 |
|---|---|---|
| committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-04-23 16:11:28 +0000 |
| commit | c244e9d27f34ec314090dc14befca5eba3911ba0 (patch) | |
| tree | 03bc9fee296f246421f12dc64b6c6c98747bd0ac /frontends/php/srv_status.php | |
| parent | 155b93902f76f21999780359f60ce1d9a1132a55 (diff) | |
| download | zabbix-c244e9d27f34ec314090dc14befca5eba3911ba0.tar.gz zabbix-c244e9d27f34ec314090dc14befca5eba3911ba0.tar.xz zabbix-c244e9d27f34ec314090dc14befca5eba3911ba0.zip | |
- [DEV-137] minor fix (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5651 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/srv_status.php')
| -rw-r--r-- | frontends/php/srv_status.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/frontends/php/srv_status.php b/frontends/php/srv_status.php index 3daac4e9..4309c07b 100644 --- a/frontends/php/srv_status.php +++ b/frontends/php/srv_status.php @@ -37,7 +37,7 @@ include_once "include/page_header.php"; // VAR TYPE OPTIONAL FLAGS VALIDATION EXCEPTION $fields=array( "serviceid"=> array(T_ZBX_INT, O_OPT, P_SYS|P_NZERO, DB_ID, NULL), - "showgraph"=> array(T_ZBX_INT, O_OPT, P_SYS, IN("1")."isset({serviceid})",NULL), + "showgraph"=> array(T_ZBX_INT, O_OPT, P_SYS, IN("1"), 'isset({serviceid})'), // ajax 'favobj'=> array(T_ZBX_STR, O_OPT, P_ACT, IN("'hat'"), NULL), 'favid'=> array(T_ZBX_STR, O_OPT, P_ACT, NOT_EMPTY, 'isset({favobj})'), @@ -71,9 +71,10 @@ include_once "include/page_header.php"; if(isset($_REQUEST["serviceid"]) && $_REQUEST["serviceid"] > 0){ $sql = 'SELECT s.serviceid '. ' FROM services s '. - ' WHERE (s.triggerid is NULL OR '.DBcondition('s.triggerid',$available_triggers,true).') '. + ' WHERE (s.triggerid is NULL OR '.DBcondition('s.triggerid',$available_triggers).') '. ' AND s.serviceid='.$_REQUEST['serviceid']; - if(DBfetch(DBselect($sql,1))){ + + if(!$service = DBfetch(DBselect($sql,1))){ access_deny(); } } |
