aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Bookmarks.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-04-19 10:41:51 +0000
committerMario <mario@mariovavti.com>2021-04-19 10:41:51 +0000
commitb5049651ad360bdfeaf994c4be1ffb10d4acbeb4 (patch)
treeb7d1c1c2890f27043d36881febe45e6795c1608d /Zotlabs/Module/Bookmarks.php
parentc95a6fe1e5fb67c98e18096ed5c8759a2b554324 (diff)
parent70b204cb3fcbe48acf28583a193a025e21fa09cc (diff)
downloadvolse-hubzilla-b5049651ad360bdfeaf994c4be1ffb10d4acbeb4.tar.gz
volse-hubzilla-b5049651ad360bdfeaf994c4be1ffb10d4acbeb4.tar.bz2
volse-hubzilla-b5049651ad360bdfeaf994c4be1ffb10d4acbeb4.zip
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
Diffstat (limited to 'Zotlabs/Module/Bookmarks.php')
-rw-r--r--Zotlabs/Module/Bookmarks.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/Zotlabs/Module/Bookmarks.php b/Zotlabs/Module/Bookmarks.php
index 4b4929c65..822b18308 100644
--- a/Zotlabs/Module/Bookmarks.php
+++ b/Zotlabs/Module/Bookmarks.php
@@ -16,8 +16,8 @@ class Bookmarks extends \Zotlabs\Web\Controller {
nav_set_selected('Bookmarks');
- $item_id = intval($_REQUEST['item']);
- $burl = trim($_REQUEST['burl']);
+ $item_id = (isset($_REQUEST['item']) ? $_REQUEST['item'] : false);
+ $burl = (isset($_REQUEST['burl']) ? trim($_REQUEST['burl']) : '');
if(! $item_id)
return;
@@ -38,7 +38,7 @@ class Bookmarks extends \Zotlabs\Web\Controller {
$item = $i[0];
- $terms = get_terms_oftype($item['term'],TERM_BOOKMARK);
+ $terms = (x($item, 'term') ? get_terms_oftype($item['term'],TERM_BOOKMARK) : false);
if($terms) {
require_once('include/bookmarks.php');