summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/nodes.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/include/nodes.inc.php')
-rw-r--r--frontends/php/include/nodes.inc.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/frontends/php/include/nodes.inc.php b/frontends/php/include/nodes.inc.php
index c1e8d6b2..b8e14035 100644
--- a/frontends/php/include/nodes.inc.php
+++ b/frontends/php/include/nodes.inc.php
@@ -50,11 +50,11 @@
{
global $ZBX_CURNODEID, $ZBX_CURMASTERID;
- if( !eregi('^'.ZBX_EREG_NODE_FORMAT.'$', $name) )
- {
- error("Incorrect characters used for Node name");
- return false;
- }
+ if( !eregi('^'.ZBX_EREG_NODE_FORMAT.'$', $name) )
+ {
+ error("Incorrect characters used for Node name");
+ return false;
+ }
switch($node_type)
{
@@ -103,11 +103,11 @@
function update_node($nodeid,$new_nodeid,$name,$timezone,$ip,$port,$slave_history,$slave_trends)
{
- if( !eregi('^'.ZBX_EREG_NODE_FORMAT.'$', $name) )
- {
- error("Incorrect characters used for Node name");
- return false;
- }
+ if( !eregi('^'.ZBX_EREG_NODE_FORMAT.'$', $name) )
+ {
+ error("Incorrect characters used for Node name");
+ return false;
+ }
$result = DBexecute('update nodes set nodeid='.$new_nodeid.',name='.zbx_dbstr($name).','.
'timezone='.$timezone.',ip='.zbx_dbstr($ip).',port='.$port.','.