mirror of
https://github.com/Mibew/java.git
synced 2025-01-22 17:40:35 +03:00
Set Database::throwExceptions back in cron_index_message
This commit is contained in:
parent
7bf20e29e7
commit
d3b254fc82
@ -63,7 +63,7 @@
|
|||||||
*/
|
*/
|
||||||
function cron_index_messages() {
|
function cron_index_messages() {
|
||||||
$db = Database::getInstance();
|
$db = Database::getInstance();
|
||||||
$db->throwExeptions(true);
|
$db_throw_exceptions = $db->throwExeptions(true);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Start transaction
|
// Start transaction
|
||||||
@ -195,11 +195,17 @@ function cron_index_messages() {
|
|||||||
E_USER_WARNING
|
E_USER_WARNING
|
||||||
);
|
);
|
||||||
$db->query('ROLLBACK');
|
$db->query('ROLLBACK');
|
||||||
|
|
||||||
|
// Set throw exceptions back
|
||||||
|
$db->throwExeptions($db_throw_exceptions);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Commit transaction
|
// Commit transaction
|
||||||
$db->query('COMMIT');
|
$db->query('COMMIT');
|
||||||
|
|
||||||
|
// Set throw exceptions back
|
||||||
|
$db->throwExeptions($db_throw_exceptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user