Merge pull request #709 from Mamaduka/master

Avoid PHP error
This commit is contained in:
Mike Jolley 2012-02-27 05:51:10 -08:00
commit 322ab321fa
1 changed files with 5 additions and 1 deletions

View File

@ -535,7 +535,11 @@ class WC_Product {
$child_prices = array_unique( $child_prices );
$min_price = min( $child_prices );
if ( ! empty( $all_prices ) ) {
$min_price = min( $all_prices );
} else {
$min_price = '';
}
if (sizeof($child_prices)>1) $price .= $this->get_price_html_from_text();