From f30a39f9df5dc0cc70a9cb9befe87a8723c75721 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 5 Feb 2014 03:15:10 -0800 Subject: bookmark debug logging --- mod/bookmarks.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mod/bookmarks.php') diff --git a/mod/bookmarks.php b/mod/bookmarks.php index fe5ec1e19..73958ff2f 100644 --- a/mod/bookmarks.php +++ b/mod/bookmarks.php @@ -26,9 +26,13 @@ function bookmarks_init(&$a) { require_once('include/bookmarks.php'); require_once('include/Contact.php'); $s = channelx_by_hash($i[0]['author_xchan']); + if(! $s) { + notice( t('Author lookup failed') . EOL); + killme(); + } foreach($terms as $t) { bookmark_add($u,$s[0],$t,$i[0]['item_private']); - notice( t('Bookmark(s) added') . EOL); + notice( t('Bookmark added') . EOL); } } killme(); -- cgit v1.2.3