summaryrefslogtreecommitdiffstats
path: root/lib/class
diff options
context:
space:
mode:
Diffstat (limited to 'lib/class')
-rw-r--r--lib/class/dba.class.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/class/dba.class.php b/lib/class/dba.class.php
index 16e6f593..58af7947 100644
--- a/lib/class/dba.class.php
+++ b/lib/class/dba.class.php
@@ -55,7 +55,9 @@ class Dba {
* query
*/
public static function query($sql, $params) {
- debug_event('Query', $sql . ' ' . json_encode($params), 6);
+ // json_encode throws errors about UTF-8 cleanliness, which we don't
+ // care about here.
+ debug_event('Query', $sql . ' ' . @json_encode($params), 6);
// Run the query
if ($params) {