diff options
Diffstat (limited to 'includes')
-rw-r--r-- | includes/database/database.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/database/database.inc b/includes/database/database.inc index a4c996a0e..73dbfe78f 100644 --- a/includes/database/database.inc +++ b/includes/database/database.inc @@ -1017,7 +1017,7 @@ abstract class DatabaseConnection extends PDO { else { if (isset($logging_callback)) { // Log the failed rollback. - $logging_callback('database', 'Explicit rollback failed: not supported on active connection.', array(), $logging['error_severity']); + call_user_func($logging_callback, 'database', 'Explicit rollback failed: not supported on active connection.', array(), $logging['error_severity']); } // It would be nice to throw an exception here if logging failed, @@ -1028,7 +1028,7 @@ abstract class DatabaseConnection extends PDO { // Play back the logged errors to the specified logging callback post- // rollback. foreach ($rollback_logs as $log_item) { - $logging_callback($log_item['type'], $log_item['message'], $log_item['variables'], $log_item['severity'], $log_item['link']); + call_user_func($logging_callback, $log_item['type'], $log_item['message'], $log_item['variables'], $log_item['severity'], $log_item['link']); } } } |