summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/events.inc.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-04-10 12:03:55 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-04-10 12:03:55 +0000
commiteba366d7fa455e4662b14cd88bea08476e492c06 (patch)
tree8678eb8ad2a87bd3d623bfd8a474b84515bd44af /frontends/php/include/events.inc.php
parentcbffad50eaa192d44a52fc08f2dd2abcf0735b29 (diff)
downloadzabbix-eba366d7fa455e4662b14cd88bea08476e492c06.tar.gz
zabbix-eba366d7fa455e4662b14cd88bea08476e492c06.tar.xz
zabbix-eba366d7fa455e4662b14cd88bea08476e492c06.zip
- fixed discovery event showing (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@3983 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/events.inc.php')
-rw-r--r--frontends/php/include/events.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/php/include/events.inc.php b/frontends/php/include/events.inc.php
index d5fc0592..792860b7 100644
--- a/frontends/php/include/events.inc.php
+++ b/frontends/php/include/events.inc.php
@@ -107,7 +107,7 @@
if(is_null($nodeid)) $nodeid = $ZBX_CURNODEID;
$db_events = DBselect('select distinct e.source,e.object,e.objectid,e.clock,e.value from events e'.
- ' where '.' e.source='.EVENT_SOURCE_DISCOVERY.' order by e.clock desc',
+ ' where e.source='.EVENT_SOURCE_DISCOVERY.' order by e.clock desc',
10*($start+$num)
);
@@ -148,7 +148,7 @@
break;
case EVENT_OBJECT_DSERVICE:
$object_data = DBfetch(DBselect('select h.ip,s.type,s.port from dhosts h,dservices s '.
- ' where h.dhostid=s.dhostid, s.dserviceid='.$event_data['objectid']));
+ ' where h.dhostid=s.dhostid and s.dserviceid='.$event_data['objectid']));
$description = S_SERVICE.': '.discovery_check_type2str($object_data['type']).'; '.
S_PORT.': '.$object_data['port'];
break;