From f1ec3ab89375825baf7e39a00ff5f75cd3952791 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 29 Jan 2018 18:35:27 +0100 Subject: re-enable mysql warnings --- it_dbi.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/it_dbi.class b/it_dbi.class index b91f6bf..7ea446f 100644 --- a/it_dbi.class +++ b/it_dbi.class @@ -540,7 +540,7 @@ function query($query, $p = array()) $messages[] = $warning->message . " [error $warning->errno]"; } while ($warning->next() && ++$checked < 20); - if (it::is_devel() && $messages) # FIXME 2018-02 UM enable when ready + if ($messages) it::error(['title' => "Mysql warning: " . $messages[0], 'body' => "$query\n\n" . join("\n", $messages) . "\n"]); } -- cgit v1.2.3