summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/db.inc.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-01-19 13:17:16 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-01-19 13:17:16 +0000
commit57c41aefe08e7a3c0356b1f30cb19cbe429ca2b8 (patch)
tree8b5442c16a7edb578b00a1df7a5a28f794274f88 /frontends/php/include/db.inc.php
parent197bc5cadd3d2fc8826a5519248a6d8ebd0c60d9 (diff)
- Frontend improvements (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@2544 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/db.inc.php')
-rw-r--r--frontends/php/include/db.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/php/include/db.inc.php b/frontends/php/include/db.inc.php
index ef5d5ddc..4daada8f 100644
--- a/frontends/php/include/db.inc.php
+++ b/frontends/php/include/db.inc.php
@@ -75,7 +75,7 @@
}
}
- function DBexecute($query)
+ function DBexecute($query, $skip_error_messages=0)
{
global $DB,$DB_TYPE;
@@ -85,7 +85,7 @@
{
$result=mysql_query($query,$DB);
- if(!$result)
+ if(!$result && $skip_error_messages==0)
{
error("SQL error: ".mysql_error());
error("Query: $query");