aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Bookmarks.php
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2021-04-17 23:50:19 +0200
committerMax Kostikov <max@kostikov.co>2021-04-17 23:50:19 +0200
commit787ee411ce474887f48a0c3db9c5961ea6fadd8d (patch)
tree0a1368f7dec7d47349bc0cb0bb8e8a63c8ffde7d /Zotlabs/Module/Bookmarks.php
parent200d3577fa32bb5107e0376dfd5ee9b3bc8b8721 (diff)
downloadvolse-hubzilla-787ee411ce474887f48a0c3db9c5961ea6fadd8d.tar.gz
volse-hubzilla-787ee411ce474887f48a0c3db9c5961ea6fadd8d.tar.bz2
volse-hubzilla-787ee411ce474887f48a0c3db9c5961ea6fadd8d.zip
PHP 8 fixes
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');