r80213 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80212‎ | r80213 | r80214 >
Date:00:33, 14 January 2011
Author:awjrichards
Status:deferred
Tags:
Comment:
Fixed watchdog message type to correct constant
Modified paths:
  • /civicrm/trunk/sites/all/modules/queue2civicrm/queue2civicrm_common.inc (modified) (history)

Diff [purge]

Index: civicrm/trunk/sites/all/modules/queue2civicrm/queue2civicrm_common.inc
@@ -281,9 +281,9 @@
282282 */
283283 function _queue2civicrm_update_contribution_tracking( $msg, $contribution ) {
284284 if (array_key_exists( 'contribution_tracking_id', $msg )) {
285 - $result = db_query('UPDATE {contribution_tracking} SET contribution_id = %d WHERE id = %d LIMIT 1', $contribution['id'], $msg['contribution_tracking_id']);
 285+ $result = db_query('UPDATE {contribution_tracking} SET contribution_id=%d WHERE id=%d', $contribution['id'], $msg['contribution_tracking_id']);
286286 if ( !$result ) {
287 - watchdog( 'queue2civicrm', "There was a probme updating contribution_tracking for message: %msg", print_r( $msg, true ), ERROR );
 287+ watchdog( 'queue2civicrm', "There was a probme updating contribution_tracking for message: %msg", print_r( $msg, true ), WATCHDOG_ERROR );
288288 return FALSE;
289289 } else {
290290 watchdog( 'queue2civicrm', 'Successfuly updated contribution_tracking for message: %msg', print_r( $msg, true));

Status & tagging log