Index: civicrm/trunk/sites/all/modules/wmf_premiums/wmf_premiums.module |
— | — | @@ -91,7 +91,7 @@ |
92 | 92 | * @return array of shipping information |
93 | 93 | */ |
94 | 94 | function wmf_premiums_get_shipping_address( $trxn_info ) { |
95 | | - $shipping_info = array(); |
| 95 | + $shipping = array(); |
96 | 96 | |
97 | 97 | // if we have a secondary address, use that for shipping |
98 | 98 | if ( strlen( trim( $trxn_info[ 'first_name_2' ] )) && strlen( trim( $trxn_info[ 'last_name_2' ]))) { |
— | — | @@ -114,7 +114,9 @@ |
115 | 115 | $shipping[ 'country' ] = $trxn_info[ 'country' ]; |
116 | 116 | } |
117 | 117 | |
118 | | - return $shipping_info; |
| 118 | + watchdog( 'wmf_premiums', 'Setting shipping info for premiums info to: %shipping', array( '%shipping', print_r( $shipping, true )), WATCHDOG_DEBUG ); |
| 119 | + |
| 120 | + return $shipping; |
119 | 121 | } |
120 | 122 | |
121 | 123 | function wmf_premiums_test_insert() { |