Fixed "undefined index" notice in WooCommerce query.

{dev} WooCommerce V1.0.0 - Fixed "undefined index" notice in WooCommerce
query.
This commit is contained in:
Matty 2011-08-25 13:49:00 +02:00
parent 142635fdbb
commit ac74ff0d12
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ function woocommerce_filter_loop() {
$post_ids = $all_post_ids;
$post_ids = apply_filters('loop-shop-posts-in', $post_ids);
if ($_POST['orderby']) :
if ( isset( $_POST['orderby'] ) && ( $_POST['orderby'] != '' ) ) :
$_SESSION['orderby'] = $_POST['orderby'];
endif;