X-Git-Url: https://git.bts.cx/cx.git/blobdiff_plain/04d8d3de247226f9530964084bdf16e55c9f2742..c678faf602beee2b667adba59916f00e211b3fd3:/cx/lib/posts.php?ds=inline diff --git a/cx/lib/posts.php b/cx/lib/posts.php index 2c2dc82..0a2ac4d 100644 --- a/cx/lib/posts.php +++ b/cx/lib/posts.php @@ -15,8 +15,8 @@ class PostMetadata { public $hero_image_alt; public function __construct($dict) { - $this->hero_image = $dict['post_hero_image']; - $this->hero_image_alt = $dict['post_hero_image_alt']; + $this->hero_image = isset($dict['post_hero_image']) ? $dict['post_hero_image'] : null; + $this->hero_image_alt = isset($dict['post_hero_image_alt']) ? $dict['post_hero_image_alt'] : null; } }