projects
/
fa-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8662a73
)
Fixed exit on error in check_db_error
author
Janusz Dobrowolski
<janusz@frontaccounting.eu>
Thu, 5 Aug 2010 09:57:17 +0000
(09:57 +0000)
committer
Janusz Dobrowolski
<janusz@frontaccounting.eu>
Thu, 5 Aug 2010 09:57:17 +0000
(09:57 +0000)
includes/errors.inc
patch
|
blob
|
history
diff --git
a/includes/errors.inc
b/includes/errors.inc
index 16b5be40f4c59c254af75cb26ac2367a77157383..cafa86f48cb266eb3c492e92b5dfcac95ebeb722 100644
(file)
--- a/
includes/errors.inc
+++ b/
includes/errors.inc
@@
-27,7
+27,7
@@
function error_handler($errno, $errstr, $file, $line) {
return true;
}
}
-
+
// error_reporting==0 when messages are set off with @
if ($errno & error_reporting())
$messages[] = array($errno, $errstr, $file, $line);
@@
-167,7
+167,7
@@
function check_db_error($msg, $sql_statement, $exit_if_error=true, $rollback_if_
if ($rollback_if_error)
{
- $rollback_result = db_query("rollback"
,"could not rollback");
+ $rollback_result = db_query("rollback"
);
}
if ($exit_if_error)