Skip to content

Commit

Permalink
BUGFIX: Check if index exists before accessing it
Browse files Browse the repository at this point in the history
  • Loading branch information
munirajun committed Aug 29, 2017
1 parent 41dea85 commit 838ac95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Quintype/Seo/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ protected function getKeywords($params = []){
} else {
if(isset($params['stories'])){
$keywordsArray = [];
if(isset($this->story['seo']['meta-keywords'])&&($this->story['seo']['meta-keywords'][0]!="")) {
if(isset($this->story['seo']['meta-keywords']) && !empty($this->story['seo']['meta-keywords'][0])) {
$keywordsArray = $this->story['seo']['meta-keywords'];
$keywords = implode($keywordsArray, ',');
} else {
Expand Down

0 comments on commit 838ac95

Please sign in to comment.