Skip to content

Commit

Permalink
Added fallback to category description
Browse files Browse the repository at this point in the history
  • Loading branch information
Leone committed Apr 19, 2019
1 parent 9b91fdb commit 99fe382
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DataProviders/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ private function addTitleTag($categoryData)

private function addDescriptionTag($categoryData)
{
$description = $categoryData['og_description'] ?? $categoryData['meta_description'] ?? null;
$description = $categoryData['og_description'] ?? $categoryData['meta_description'] ?? $categoryData['description'] ?? null;

if(!$description){
return;
Expand Down

0 comments on commit 99fe382

Please sign in to comment.