Skip to content

Commit

Permalink
fix: uninitialized value (#6912)
Browse files Browse the repository at this point in the history
* fix: uninitialized value

Add conditional as without it this will make a dead link resulting in a
404

* Update cgi/search.pl

* Update cgi/search.pl

Co-authored-by: Stéphane Gigandet <stephane@openfoodfacts.org>
  • Loading branch information
dipietroR and stephanegigandet authored Jun 22, 2022
1 parent 798a709 commit 9f4c5ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cgi/search.pl
Original file line number Diff line number Diff line change
Expand Up @@ -743,11 +743,11 @@
$request_ref->{title} = lang("search_results") . " - " . display_taxonomy_tag($lc,"countries",$country);



#This is used to have a special share button on some browsers
if (not defined $request_ref->{jqm}) {
${$request_ref->{content_ref}} .= <<HTML
<div class="share_button right" style="float:right;margin-top:-10px;display:none;">
<a href="$request_ref->{current_link_query_display}&amp;action=display" class="button small" title="$request_ref->{title}">
<a href="$request_ref->{current_link}" class="button small" title="$request_ref->{title}">
@{[ display_icon('share') ]}
<span class="show-for-large-up"> $share</span>
</a></div>
Expand Down

0 comments on commit 9f4c5ea

Please sign in to comment.