summaryrefslogtreecommitdiffstats
path: root/frontends/php/sysmap.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-05-12 07:01:06 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-05-12 07:01:06 +0000
commit06f68476ff0a32ab823885118054595894016f06 (patch)
treeb0f18b6058f40b4daa8aafc0c4e6995372ccaf8d /frontends/php/sysmap.php
parentb327677b4e405ccc71f6292fad2ff08abe2f7c99 (diff)
downloadzabbix-06f68476ff0a32ab823885118054595894016f06.tar.gz
zabbix-06f68476ff0a32ab823885118054595894016f06.tar.xz
zabbix-06f68476ff0a32ab823885118054595894016f06.zip
- fixes to zabbix_sender and other changes (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@2823 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/sysmap.php')
-rw-r--r--frontends/php/sysmap.php5
1 files changed, 3 insertions, 2 deletions
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;