From 7f1f549c6f435bfe29bf7d331748b2623f98e6ae Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 14 Feb 2016 15:08:49 +0100 Subject: [PATCH] Fallback when there is no nick name --- mod/item.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mod/item.php b/mod/item.php index 7e575a17e4..2ade524a05 100644 --- a/mod/item.php +++ b/mod/item.php @@ -160,6 +160,9 @@ function item_post(&$a) { logger('no contact found: '.print_r($thrparent, true), LOGGER_DEBUG); } else logger('parent contact: '.print_r($parent_contact, true), LOGGER_DEBUG); + + if ($parent_contact["nick"] == "") + $parent_contact["nick"] = $parent_contact["name"]; } }