Skip to content

Commit

Permalink
CRM-21795 - Avoid fatal error to be displayed in log files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jitendra Purohit committed Feb 27, 2018
1 parent 50671bb commit eb3277f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions CRM/Utils/System/Drupal.php
Original file line number Diff line number Diff line change
Expand Up @@ -853,10 +853,12 @@ public function synchronizeUsers() {
* Similar to drupal_exit().
*/
public function onCiviExit() {
if (!defined('MAINTENANCE_MODE') || MAINTENANCE_MODE != 'update') {
module_invoke_all('exit');
if (function_exists('module_invoke_all')) {
if (!defined('MAINTENANCE_MODE') || MAINTENANCE_MODE != 'update') {
module_invoke_all('exit');
}
drupal_session_commit();
}
drupal_session_commit();
}

}

0 comments on commit eb3277f

Please sign in to comment.