Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: resolve PHP warnings, only show 'Applied filters' if needed (fix #204) #211

Merged
merged 9 commits into from
Mar 6, 2020
Prev Previous commit
Next Next commit
fix: hide 'Applied filters' if none are applied (resolves #204)
  • Loading branch information
greatislander committed Mar 5, 2020
commit 479fb5faa2916fc6c8f26ceb69ad46f55da0f8ff
2 changes: 1 addition & 1 deletion resources/views/partials/current-filters.blade.php
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@
<h2 class="h4">{{ __('Search term', 'coop-library') }}</h2>
<p>&ldquo;{{ $_GET['s'] }}&rdquo;</p>
@endif
@if(!empty(array_filter($queried_resource_terms)))
@if(!empty(array_filter(array_map('array_filter', $queried_resource_terms))))
<h2 class="h4">{{ __('Applied filters', 'coop-library') }}</h2>
<ul class="tags">
@foreach($queried_resource_terms as $taxonomy => $terms)