Skip to content
Snippets Groups Projects
Commit 31741b2c authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #25522 by Cvbge: _db_query() does not return FALSE in case of errors...

- Patch #25522 by Cvbge: _db_query() does not return FALSE in case of errors as stated in documentation.
parent 6733014f
No related branches found
No related tags found
No related merge requests found
......@@ -97,6 +97,7 @@ function _db_query($query, $debug = 0) {
}
else {
trigger_error(mysql_error() ."\nquery: ". htmlspecialchars($query), E_USER_ERROR);
return FALSE;
}
}
......
......@@ -84,6 +84,7 @@ function _db_query($query, $debug = 0) {
}
else {
trigger_error(pg_last_error() ."\nquery: ". htmlspecialchars($query), E_USER_ERROR);
return FALSE;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment