From 479b8444053d52335f37e3821f7e8e949f46bf4b Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Mon, 25 Sep 2017 15:27:12 -0700 Subject: [PATCH] fix for #83 --- controllers/controllers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/controllers.php b/controllers/controllers.php index 1860f60..571690e 100644 --- a/controllers/controllers.php +++ b/controllers/controllers.php @@ -727,7 +727,7 @@ $app->get('/reply/preview', function() use($app) { $entry['content']['text'] = $content; } // Create a nickname based on the author URL - if(array_key_exists('author', $entry)) { + if($entry && array_key_exists('author', $entry)) { if($entry['author']['url']) { if(!isset($entry['author']['nickname']) || !$entry['author']['nickname']) $entry['author']['nickname'] = display_url($entry['author']['url']);