From b82812f00576369e65c996ef51264de66ce63d57 Mon Sep 17 00:00:00 2001 From: artem Date: Thu, 17 Apr 2008 15:02:02 +0000 Subject: - [DEV-137] fixes in graph zoom for KQ (Artem) - [DEV-137] fixes for possible errors under Oracle (Artem) git-svn-id: svn://svn.zabbix.com/trunk@5632 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/report3.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'frontends/php/report3.php') diff --git a/frontends/php/report3.php b/frontends/php/report3.php index bb071dd7..bee83821 100644 --- a/frontends/php/report3.php +++ b/frontends/php/report3.php @@ -49,12 +49,12 @@ include_once "include/page_header.php"; fatal_error(S_NO_IT_SERVICE_DEFINED); } - $available_triggers = get_accessible_triggers(PERM_READ_ONLY, null, get_current_nodeid()); + $available_triggers = get_accessible_triggers(PERM_READ_ONLY, PERM_RES_IDS_ARRAY); $sql = 'SELECT s.* '. ' FROM services s '. ' WHERE s.serviceid='.$_REQUEST['serviceid']. - ' AND (s.triggerid IS NULL OR s.triggerid IN ('.$available_triggers.')) '. + ' AND (s.triggerid IS NULL OR '.DBcondition('s.triggerid',$available_triggers).') '. ' AND DBin_node('s.serviceid')'; if(!$service = DBfetch(DBselect($sql))){ -- cgit