From 06f68476ff0a32ab823885118054595894016f06 Mon Sep 17 00:00:00 2001 From: hugetoad Date: Fri, 12 May 2006 07:01:06 +0000 Subject: - fixes to zabbix_sender and other changes (Alexei) git-svn-id: svn://svn.zabbix.com/trunk@2823 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/sysmap.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'frontends/php/sysmap.php') diff --git a/frontends/php/sysmap.php b/frontends/php/sysmap.php index 0881c1af..e793024a 100644 --- a/frontends/php/sysmap.php +++ b/frontends/php/sysmap.php @@ -159,8 +159,9 @@ elseif(isset($_REQUEST["form"]) && ($_REQUEST["form"]=="add_link" || ($_REQUEST["form"]=="update" && isset($_REQUEST["linkid"])))) { - $result=DBselect("select * from sysmaps_elements where sysmapid=".$_REQUEST["sysmapid"]); - if(DBnum_rows($result)>1) + $result=DBselect("select count(*) as count from sysmaps_elements where sysmapid=".$_REQUEST["sysmapid"]); + $row=DBfetch($result);; + if($row["count"]>1) { show_table_header("CONNECTORS"); echo BR; -- cgit