summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/maps.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/include/maps.inc.php')
-rw-r--r--frontends/php/include/maps.inc.php12
1 files changed, 3 insertions, 9 deletions
diff --git a/frontends/php/include/maps.inc.php b/frontends/php/include/maps.inc.php
index 563d065a..0b0a758a 100644
--- a/frontends/php/include/maps.inc.php
+++ b/frontends/php/include/maps.inc.php
@@ -21,8 +21,6 @@
<?php
function get_map_by_sysmapid($sysmapid)
{
- global $ERROR_MSG;
-
$sql="select * from sysmaps where sysmapid=$sysmapid";
$result=DBselect($sql);
if(DBnum_rows($result) == 1)
@@ -31,7 +29,7 @@
}
else
{
- $ERROR_MSG="No system map with sysmapid=[$sysmapid]";
+ error("No system map with sysmapid=[$sysmapid]");
}
return $result;
}
@@ -60,11 +58,9 @@
function update_sysmap($sysmapid,$name,$width,$height,$background,$label_type)
{
- global $ERROR_MSG;
-
if(!check_right("Network map","U",$sysmapid))
{
- $ERROR_MSG="Insufficient permissions";
+ error("Insufficient permissions");
return 0;
}
@@ -76,11 +72,9 @@
function add_sysmap($name,$width,$height,$background,$label_type)
{
- global $ERROR_MSG;
-
if(!check_right("Network map","A",0))
{
- $ERROR_MSG="Insufficient permissions";
+ error("Insufficient permissions");
return 0;
}