summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/db.inc.php
diff options
context:
space:
mode:
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");