aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-05 03:15:10 -0800
committerfriendica <info@friendica.com>2014-02-05 03:15:10 -0800
commitf30a39f9df5dc0cc70a9cb9befe87a8723c75721 (patch)
treecec4081abc7a2e4209e4b28af00dd088c61c0447 /mod
parent8a11c2941395bdd325ac076bd22ad011fe41f3c7 (diff)
downloadvolse-hubzilla-f30a39f9df5dc0cc70a9cb9befe87a8723c75721.tar.gz
volse-hubzilla-f30a39f9df5dc0cc70a9cb9befe87a8723c75721.tar.bz2
volse-hubzilla-f30a39f9df5dc0cc70a9cb9befe87a8723c75721.zip
bookmark debug logging
Diffstat (limited to 'mod')
-rw-r--r--mod/bookmarks.php6
1 files changed, 5 insertions, 1 deletions
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();