Commit 31741b2c authored by Dries's avatar Dries

- 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
......@@ -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;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment