From ac74ff0d128f515dc7e8ac3174b68db72cd02939 Mon Sep 17 00:00:00 2001 From: Matty Date: Thu, 25 Aug 2011 13:49:00 +0200 Subject: [PATCH] Fixed "undefined index" notice in WooCommerce query. {dev} WooCommerce V1.0.0 - Fixed "undefined index" notice in WooCommerce query. --- woocommerce_query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/woocommerce_query.php b/woocommerce_query.php index f2c86009133..9ebd9b6c8d6 100644 --- a/woocommerce_query.php +++ b/woocommerce_query.php @@ -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;