Skip to content

Commit

Permalink
Locales tag pair outputs nothing if there's no data (eg. on a 404) - C…
Browse files Browse the repository at this point in the history
…loses #1135
  • Loading branch information
jasonvarga committed Jan 14, 2020
1 parent 76dfc9a commit ab4676c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Tags/Locales.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ class Locales extends Tags
*/
public function index()
{
if (! $this->getData()) {
return '';
}

return $this->getLocales();
}

Expand Down

0 comments on commit ab4676c

Please sign in to comment.