From d3b254fc82c3bff4a9cd686b525622d7221b0dc5 Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Tue, 7 May 2013 11:57:18 +0000 Subject: [PATCH] Set Database::throwExceptions back in cron_index_message --- src/messenger/webim/libs/cron.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/messenger/webim/libs/cron.php b/src/messenger/webim/libs/cron.php index b886c827..01b7088c 100644 --- a/src/messenger/webim/libs/cron.php +++ b/src/messenger/webim/libs/cron.php @@ -63,7 +63,7 @@ */ function cron_index_messages() { $db = Database::getInstance(); - $db->throwExeptions(true); + $db_throw_exceptions = $db->throwExeptions(true); try { // Start transaction @@ -195,11 +195,17 @@ function cron_index_messages() { E_USER_WARNING ); $db->query('ROLLBACK'); + + // Set throw exceptions back + $db->throwExeptions($db_throw_exceptions); return; } // Commit transaction $db->query('COMMIT'); + + // Set throw exceptions back + $db->throwExeptions($db_throw_exceptions); } /**