From ba06ed39d6b5c9d7ba38456783e67c888f3b3cf6 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Fri, 25 Jan 2013 08:55:47 +0100 Subject: Silence pg_query errors from php itself --- sqlbox/locallib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlbox/locallib.php b/sqlbox/locallib.php index cf821b2..3916d34 100644 --- a/sqlbox/locallib.php +++ b/sqlbox/locallib.php @@ -41,7 +41,7 @@ defined('MOODLE_INTERNAL') || die(); function db_table_from_query($db, $query) { $table = new html_table; - $result = pg_query($db, $query); + $result = @pg_query($db, $query); if (!$result) error("Query failed: ".pg_last_error($db)); -- cgit