aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-06-26 09:35:53 +0000
committerMario <mario@mariovavti.com>2024-06-26 09:35:53 +0000
commit4cddc3d0dfa67c7416ec2c2881c43c491ccc0db4 (patch)
treee464dd53f3c37dd6dcc91a2ee019faca209c1414
parent241d96e9faa77bdbcde8d7a0d7a31bf915180846 (diff)
downloadvolse-hubzilla-4cddc3d0dfa67c7416ec2c2881c43c491ccc0db4.tar.gz
volse-hubzilla-4cddc3d0dfa67c7416ec2c2881c43c491ccc0db4.tar.bz2
volse-hubzilla-4cddc3d0dfa67c7416ec2c2881c43c491ccc0db4.zip
fix php error
-rw-r--r--Zotlabs/Module/Sources.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/Zotlabs/Module/Sources.php b/Zotlabs/Module/Sources.php
index ef665e727..177ae1f1a 100644
--- a/Zotlabs/Module/Sources.php
+++ b/Zotlabs/Module/Sources.php
@@ -3,6 +3,7 @@ namespace Zotlabs\Module; /** @file */
use App;
use Zotlabs\Lib\Apps;
+use Zotlabs\Lib\Text;
use Zotlabs\Web\Controller;
class Sources extends Controller {
@@ -15,13 +16,12 @@ class Sources extends Controller {
return;
$source = intval($_REQUEST['source']);
- $xchan = escape_tags($_REQUEST['xchan']);
+ $xchan = ((isset($_REQUEST['xchan'])) ? Text::escape_tags($_REQUEST['xchan']) : '');
$abook = intval($_REQUEST['abook']);
- $words = escape_tags($_REQUEST['words']);
+ $words = ((isset($_REQUEST['words'])) ? Text::escape_tags($_REQUEST['words']) : '');
$resend = intval($_REQUEST['resend']);
- $frequency = $_REQUEST['frequency'];
- $name = escape_tags($_REQUEST['name']);
- $tags = escape_tags($_REQUEST['tags']);
+ $name = ((isset($_REQUEST['name'])) ? Text::escape_tags($_REQUEST['name']) : '');
+ $tags = ((isset($_REQUEST['tags'])) ? Text::escape_tags($_REQUEST['tags']) : '');
$channel = \App::get_channel();