Skip to content

Commit

Permalink
Ensure var is set. #857
Browse files Browse the repository at this point in the history
  • Loading branch information
pippinsplugins committed Mar 8, 2013
1 parent b51bc09 commit c4d0cc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-edd-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,7 @@ function get_recent_sales( $number = 10 ) {
$price = edd_get_download_final_price( $item['id'], $user_info, $price_override );

if ( isset( $cart_items[ $key ]['item_number'])) {
$price_name = '';
$price_options = $cart_items[ $key ]['item_number']['options'];
if ( isset( $price_options['price_id'] ) ) {
$price_name = edd_get_price_option_name( $item['id'], $price_options['price_id'], $payment->ID );
Expand Down Expand Up @@ -942,7 +943,6 @@ function output( $data ) {
case 'xml' :

require_once EDD_PLUGIN_DIR . 'includes/libraries/array2xml.php';

$xml = Array2XML::createXML( 'edd', $data );
echo $xml->saveXML();

Expand Down

0 comments on commit c4d0cc6

Please sign in to comment.