Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions search-sidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*/

$category = (array)__get('category');
if (!isset($category['pk_i_id'])) {
if (isset($category['pk_i_id'])) {
$category['pk_i_id'] = null;
}
?>
Expand Down Expand Up @@ -90,8 +90,12 @@
<fieldset>
<div class="row ">
<h3><?php _e('Refine category', 'bender') ; ?></h3>
<?php bender_sidebar_category_search($category['pk_i_id']); ?>
<?php
if( isset($category['pk_i_id']) ) {
bender_sidebar_category_search($category['pk_i_id']);
}
?>
</div>
</fieldset>
</div>
</div>
</div>