summaryrefslogtreecommitdiff
path: root/include/db.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2016-04-26 20:04:24 +0300
committerAndrew Dolgov <[email protected]>2016-04-26 20:04:24 +0300
commit977cea1438dafcdc98756b070a1383e5887d64c1 (patch)
tree4a4e5d75d56c7c36c72a70d811d9db1926de7a52 /include/db.php
parent9e84bab449f9ed55e02e60378b0af1521026f3b8 (diff)
actually check for failures properly in the dbupdater
Diffstat (limited to 'include/db.php')
-rw-r--r--include/db.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/db.php b/include/db.php
index 55d1d654e..f45f07276 100644
--- a/include/db.php
+++ b/include/db.php
@@ -29,6 +29,10 @@ function db_last_error() {
return Db::get()->last_error();
}
+function db_last_query_error() {
+ return Db::get()->last_query_error();
+}
+
function db_quote($str){
return Db::get()->quote($str);
}