From 57c41aefe08e7a3c0356b1f30cb19cbe429ca2b8 Mon Sep 17 00:00:00 2001 From: osmiy Date: Thu, 19 Jan 2006 13:17:16 +0000 Subject: - Frontend improvements (Eugene) git-svn-id: svn://svn.zabbix.com/trunk@2544 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/include/db.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'frontends/php/include/db.inc.php') 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"); -- cgit