summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/db.inc.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-01-07 19:16:41 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-01-07 19:16:41 +0000
commit9a153ee69ffb21fc21c7aa9b036ab99893b39251 (patch)
tree1ba6a6a084a51fc508372659bf0c9cc83c7d7e4c /frontends/php/include/db.inc.php
parent36020ffc5c826952f88b4adb4cf62f5d77c752cd (diff)
- fixed bug in host addition procedure when template host is used (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@628 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/db.inc.php')
-rw-r--r--frontends/php/include/db.inc.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/frontends/php/include/db.inc.php b/frontends/php/include/db.inc.php
index fd6a4d1f..3fc6f6b8 100644
--- a/frontends/php/include/db.inc.php
+++ b/frontends/php/include/db.inc.php
@@ -51,6 +51,11 @@
if($DB_TYPE == "MYSQL")
{
$result=mysql_query($query,$DB);
+#
+ if(!$result)
+ {
+ echo "ERROR EXECUTING: $query<br>";
+ }
return $result;
}
if($DB_TYPE == "POSTGRESQL")