summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2017-09-25 15:27:12 -0700
committerAaron Parecki <aaron@parecki.com>2017-09-25 15:27:12 -0700
commit479b8444053d52335f37e3821f7e8e949f46bf4b (patch)
tree12385e39f8e491b057d8bd1f4cf041a5a260fe43
parent004b216f7a5243c1d53048a477a23d68e9162fbc (diff)
fix for #83
-rw-r--r--controllers/controllers.php2
1 files changed, 1 insertions, 1 deletions
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']);