summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-09-18 16:22:06 +0200
committeremkael <emkael@tlen.pl>2017-09-18 16:22:06 +0200
commit35a377c08336652531876eb2787dc178fd362e47 (patch)
tree77acffcc550fa56bb4aa88e2329ff43097524f15
parent77ccbba177306d6778eb52f623baaaa0468f11b3 (diff)
MEtadata reading sanitation for MotorSport provider
-rw-r--r--providers/Motorsport.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/providers/Motorsport.php b/providers/Motorsport.php
index 6faa9cc..31b85fe 100644
--- a/providers/Motorsport.php
+++ b/providers/Motorsport.php
@@ -98,7 +98,7 @@ class Motorsport extends \Providers\Twitter {
$item->ID = md5($url);
$item->Title = isset($i->content['article:published_time']) ? $i->content['og:title'] : $i->title;
$item->Link = $url;
- $item->Text = isset($i->content['article:published_time']) ? $i->content['og:description'] : $i->content['og:title'];
+ $item->Text = isset($i->content['article:published_time']) ? $i->content['og:description'] : (isset($i->content['og:title']) ? $i->content['og:title'] : '');
$item->Time = isset($i->content['article:published_time']) ? $i->content['article:published_time'] : $i->time;
if (isset($i->author)) {
$item->Author = $i->author;