Skip to content

Commit ab4676c

Browse files
committed
Locales tag pair outputs nothing if there's no data (eg. on a 404) - Closes #1135
1 parent 76dfc9a commit ab4676c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/Tags/Locales.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ class Locales extends Tags
2121
*/
2222
public function index()
2323
{
24+
if (! $this->getData()) {
25+
return '';
26+
}
27+
2428
return $this->getLocales();
2529
}
2630

0 commit comments

Comments
 (0)