summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/db.inc.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-05-07 09:42:00 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-05-07 09:42:00 +0000
commitdc18c3c54aa5bd3d198b6ab480b6d42c4731df18 (patch)
treed307e0e8a516fdc94ad9f910f9d875e814d70358 /frontends/php/include/db.inc.php
parent3766bb922ed8071a08c4d80c6754b41ad9155e47 (diff)
downloadzabbix-dc18c3c54aa5bd3d198b6ab480b6d42c4731df18.tar.gz
zabbix-dc18c3c54aa5bd3d198b6ab480b6d42c4731df18.tar.xz
zabbix-dc18c3c54aa5bd3d198b6ab480b6d42c4731df18.zip
- [DEV-137] fixes to popup screen, charts refresh and few SQL's (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5679 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/db.inc.php')
-rw-r--r--frontends/php/include/db.inc.php18
1 files changed, 7 insertions, 11 deletions
diff --git a/frontends/php/include/db.inc.php b/frontends/php/include/db.inc.php
index 850a15bd..e7d4b644 100644
--- a/frontends/php/include/db.inc.php
+++ b/frontends/php/include/db.inc.php
@@ -598,26 +598,22 @@ else {
return (int)bcdiv("$id_var",'100000000000000');
}
- function DBin_node( $id_name, $nodes = null )
- {
- if ( is_null($nodes) ) $nodes = get_current_nodeid();
+ function DBin_node( $id_name, $nodes = null ){
+ if(is_null($nodes)) $nodes = get_current_nodeid();
- if ( empty($nodes) ) $nodes = 0;
+ if(empty($nodes)) $nodes = 0;
- if ( is_array($nodes) )
- {
+ if(is_array($nodes)){
$nodes = implode(',', $nodes);
}
- else if ( is_string($nodes) )
- {
+ else if(is_string($nodes)){
if ( !eregi('([0-9\,]+)', $nodes ) )
fatal_error('Incorrect "nodes" for "DBin_node". Passed ['.$nodes.']');
}
- else if ( !is_numeric($nodes) )
- {
+ else if(!is_numeric($nodes)){
fatal_error('Incorrect type of "nodes" for "DBin_node". Passed ['.gettype($nodes).']');
}
- return (' '.DBid2nodeid($id_name).' in ('.$nodes.') ');
+ return (' '.DBid2nodeid($id_name).' in ('.$nodes.') ');
}
function in_node( $id_var, $nodes = null ){