Skip to content

Commit

Permalink
fix #28: robustness for $image initialization in getDefaultImage()
Browse files Browse the repository at this point in the history
  • Loading branch information
clemdesign committed Nov 9, 2021
1 parent 3d0afbf commit 948be1a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# v3.0.2
## 11/09/2021
1. [](#bugfix)
* Issue #28: robustness for $image initialization in getDefaultImage()

# v3.0.1
## 11/08/2021
1. [](#bugfix)
Expand Down
2 changes: 1 addition & 1 deletion blueprints.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Social & SEO Meta Tags
version: 2.2.1
version: 3.0.2
description: Meta-tags for SEO and Social integration (Facebook Open Graph and Twitter Cards)
icon: code
author:
Expand Down
2 changes: 2 additions & 0 deletions social-seo-metatags.php
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,8 @@ private function getDefaultImage(): ?string
->grav['config']
->get('plugins.social-seo-metatags.default.image');

$image = null;

if (is_array($default)) {
$path = array_key_first($default);
}
Expand Down

0 comments on commit 948be1a

Please sign in to comment.