summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2018-01-29 18:35:27 +0100
committerUrban Müller2018-01-29 18:35:27 +0100
commitf1ec3ab89375825baf7e39a00ff5f75cd3952791 (patch)
tree31ca54e2b5a4b0053ce5173c1d0d8fc729a45b05
parentb535f5628a483eeacb6794b23d7e723b9c854b64 (diff)
downloaditools-f1ec3ab89375825baf7e39a00ff5f75cd3952791.tar.gz
itools-f1ec3ab89375825baf7e39a00ff5f75cd3952791.tar.bz2
itools-f1ec3ab89375825baf7e39a00ff5f75cd3952791.zip
re-enable mysql warnings
-rw-r--r--it_dbi.class2
1 files changed, 1 insertions, 1 deletions
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"]);
}