aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Chanview.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2022-10-13 13:15:08 +0200
committerMario Vavti <mario@mariovavti.com>2022-10-13 13:15:08 +0200
commit2a95500b6538f130df9434f1fb253247872679e8 (patch)
treee14dc2cf8b35fb353c92d6adbad9fe7c8f66a810 /Zotlabs/Module/Chanview.php
parent2ddad66ce74dd90249fa083fcf4616f8222de1b5 (diff)
downloadvolse-hubzilla-2a95500b6538f130df9434f1fb253247872679e8.tar.gz
volse-hubzilla-2a95500b6538f130df9434f1fb253247872679e8.tar.bz2
volse-hubzilla-2a95500b6538f130df9434f1fb253247872679e8.zip
fix more php warnings
Diffstat (limited to 'Zotlabs/Module/Chanview.php')
-rw-r--r--Zotlabs/Module/Chanview.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/Zotlabs/Module/Chanview.php b/Zotlabs/Module/Chanview.php
index fc1146023..f43432376 100644
--- a/Zotlabs/Module/Chanview.php
+++ b/Zotlabs/Module/Chanview.php
@@ -16,17 +16,17 @@ class Chanview extends \Zotlabs\Web\Controller {
$r = null;
- if($_REQUEST['hash']) {
+ if(isset($_REQUEST['hash']) && $_REQUEST['hash']) {
$r = q("select * from xchan where xchan_hash = '%s' and xchan_deleted = 0",
dbesc($_REQUEST['hash'])
);
}
- if($_REQUEST['address']) {
+ if(isset($_REQUEST['address']) && $_REQUEST['address']) {
$r = q("select * from xchan where xchan_addr = '%s' and xchan_deleted = 0",
dbesc(punify($_REQUEST['address']))
);
}
- elseif(local_channel() && intval($_REQUEST['cid'])) {
+ elseif(local_channel() && isset($_REQUEST['cid']) && $_REQUEST['cid']) {
$r = q("SELECT abook.*, xchan.*
FROM abook left join xchan on abook_xchan = xchan_hash
WHERE abook_channel = %d and abook_id = %d and xchan_deleted = 0",
@@ -34,7 +34,7 @@ class Chanview extends \Zotlabs\Web\Controller {
intval($_REQUEST['cid'])
);
}
- elseif($_REQUEST['url']) {
+ elseif(isset($_REQUEST['url']) && $_REQUEST['url']) {
// if somebody re-installed they will have more than one xchan, use the most recent name date as this is
// the most useful consistently ascending table item we have.
@@ -56,7 +56,7 @@ class Chanview extends \Zotlabs\Web\Controller {
if(! App::$poi) {
logger('mod_chanview: fallback');
- if($_REQUEST['address']) {
+ if(isset($_REQUEST['address']) && $_REQUEST['address']) {
$href = Webfinger::zot_url(punify($_REQUEST['address']));
if($href) {
$_REQUEST['url'] = $href;
@@ -65,7 +65,7 @@ class Chanview extends \Zotlabs\Web\Controller {
$r = null;
- if($_REQUEST['url']) {
+ if(isset($_REQUEST['url']) && $_REQUEST['url']) {
$zf = Zotfinger::exec($_REQUEST['url'], null);