summaryrefslogtreecommitdiffstats
path: root/frontends/php/sysmap.php
diff options
context:
space:
mode:
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;