Skip to content

Commit

Permalink
clear notice, ref #1106
Browse files Browse the repository at this point in the history
  • Loading branch information
kcppdevelopers committed Apr 26, 2018
1 parent 335fab3 commit 17be144
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -875,8 +875,12 @@ public function angelleye_ajax_generate_cart() {
}
WC()->cart->calculate_totals();
}
if (ob_get_length()) ob_end_clean();
ob_start();
wp_send_json(array('url' => $url));
} catch (Exception $ex) {
if (ob_get_length()) ob_end_clean();
ob_start();
wp_send_json(array('url' => $url));
}
}
Expand Down

0 comments on commit 17be144

Please sign in to comment.