We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 201c585 commit 7625dadCopy full SHA for 7625dad
1 file changed
src/Entity/Article.php
@@ -61,6 +61,9 @@ public function getHtml()
61
*/
62
public function getDate()
63
{
64
+ if (!isset($this->data['date'])) {
65
+ return null;
66
+ }
67
return (class_exists('\Carbon\Carbon')) ?
68
new \Carbon\Carbon($this->data['date'], 'GMT') :
69
$this->data['date'];
@@ -268,4 +271,4 @@ public function getEstimatedDate()
268
271
new \Carbon\Carbon($date, 'GMT') :
269
272
$date;
270
273
}
-}
274
+}
0 commit comments