Changeset 1287135
- Timestamp:
- 11/16/2015 02:33:34 PM (10 years ago)
- File:
-
- 1 edited
-
clearent-payments/trunk/main.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
clearent-payments/trunk/main.php
r1285858 r1287135 796 796 'require_billing_address' => false, 797 797 'require_shipping_address' => false, 798 'require_csc' => true, 799 'foo' => 'bar' 798 'require_csc' => true 800 799 ), $atts ); 801 800 … … 808 807 //$key = str_replace ( "_" , "-", $key); 809 808 810 $this->clearent_util->logger("BEFORE: " . $key . " = " . $value);809 $this->clearent_util->logger("BEFORE: " . $key . " = " . json_encode($value)); 811 810 812 811 $newKey = str_replace ( "_" , "-", $key); 813 $newValue = $value == "false" ? false : $value; 814 $newValue = $value == "true" ? true : $newValue; 812 813 if($value==="true"||$value===true) { 814 $newValue = true; 815 $this->clearent_util->logger( "converting to boolean: true" ); 816 }else if($value==="false"||$value===false){ 817 $newValue = false; 818 $this->clearent_util->logger("converting to boolean: false"); 819 }else{ 820 $newValue = $value; 821 } 815 822 816 823 $a[$newKey] = $newValue; 817 824 818 825 if($newKey != $key || $newValue != $value) { 819 $this->clearent_util->logger(" AFTER: " . $newKey . " = " . $newValue);826 $this->clearent_util->logger(" AFTER: " . $newKey . " = " . json_encode($newValue)); 820 827 } 821 828
Note: See TracChangeset
for help on using the changeset viewer.