Changeset 1518056
- Timestamp:
- 10/19/2016 07:01:51 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
easy-amazon-product-information/trunk/eapi_handler.php
r1507620 r1518056 1509 1509 $pA->features = ""; 1510 1510 }else{ 1511 $pA->features = preg_replace("#\"#", "[-]" ,$pA->features); 1512 $pA->features = json_encode( $pA->features, JSON_UNESCAPED_UNICODE); 1511 $json_test = true; 1512 if(!is_array($pA->features)){ 1513 json_decode($pA->features); 1514 $json_test = false; 1515 }//it must be prevented that the 'preg_replace' function is executed twice on a json object 1516 if(!(json_last_error() == JSON_ERROR_NONE) || ($json_test)){ 1517 $pA->features = preg_replace("#\"#", "[-]" ,$pA->features); 1518 $pA->features = json_encode( $pA->features, JSON_UNESCAPED_UNICODE); 1519 } 1513 1520 } 1514 1521 if(!isset($pA->title)){
Note: See TracChangeset
for help on using the changeset viewer.