Commit 0c9b4dc1 authored by Kjartan's avatar Kjartan
Browse files

- changed the PEAR version of db_query() to act similar to the MySQL one.

  If there is an SQL error db_query() will not return a result.
parent ebb14ab9
......@@ -27,8 +27,9 @@ function db_query($query, $debug = 0) {
if (DB::isError($result)) {
watchdog("error", "database: ". $result->getMessage() ."\nquery: ". htmlspecialchars($query));
}
return $result;
else {
return $result;
}
}
function db_fetch_object($result) {
......
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