summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/db.inc.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-07-23 09:37:47 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-07-23 09:37:47 +0000
commit5c3768ceaa3080321c3bf6481640fcdd380d0025 (patch)
tree172b94421c008b166a1106c5c42f983c2b8fe5b3 /frontends/php/include/db.inc.php
parent6db9d7bcf88b79ab279dd2b5dc929fabb1a23f1f (diff)
- [DEV-192] added filter to Status of triggers (Artem)
- [DEV-191] monitoring screens inline update preparation (Artem) - [DEV-192] added severity filter in status of triggers (Artem) - [DEV-137] sql fixes for oracle (Artem) - [ZBX-396] fixed error maps message (Artem) - [ZBX-394] fixed showing hosts without group in status of triggers (Artem) - [DEV-137] small fixes (Artem) git-svn-id: svn://svn.zabbix.com/trunk@5841 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/db.inc.php')
-rw-r--r--frontends/php/include/db.inc.php15
1 files changed, 5 insertions, 10 deletions
diff --git a/frontends/php/include/db.inc.php b/frontends/php/include/db.inc.php
index fb4c46f1..f46ffb93 100644
--- a/frontends/php/include/db.inc.php
+++ b/frontends/php/include/db.inc.php
@@ -571,12 +571,10 @@ else {
}
}
- function zbx_dbconcat($params)
- {
+ function zbx_dbconcat($params){
global $DB;
- switch($DB['TYPE'])
- {
+ switch($DB['TYPE']){
case "SQLITE3":
return implode(' || ',$params);
default:
@@ -587,8 +585,7 @@ else {
function zbx_sql_mod($x,$y){
global $DB;
- switch($DB['TYPE'])
- {
+ switch($DB['TYPE']){
case "SQLITE3":
return ' ('.$x.' %% '.$y.')';
default:
@@ -596,12 +593,10 @@ else {
}
}
- function DBid2nodeid($id_name)
- {
+ function DBid2nodeid($id_name){
global $DB;
- switch($DB['TYPE'])
- {
+ switch($DB['TYPE']){
case "MYSQL":
$result = '('.$id_name.' div 100000000000000)';
break;