aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Help.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2022-10-13 16:38:18 +0200
committerMario Vavti <mario@mariovavti.com>2022-10-13 16:38:18 +0200
commit71accb6b0a2aa5e3c77f7ef73d685639d0c6526a (patch)
treef38a48b65f692aab7076bb0ba23818295c2960f1 /Zotlabs/Module/Help.php
parent2a95500b6538f130df9434f1fb253247872679e8 (diff)
downloadvolse-hubzilla-71accb6b0a2aa5e3c77f7ef73d685639d0c6526a.tar.gz
volse-hubzilla-71accb6b0a2aa5e3c77f7ef73d685639d0c6526a.tar.bz2
volse-hubzilla-71accb6b0a2aa5e3c77f7ef73d685639d0c6526a.zip
fix php warnings
Diffstat (limited to 'Zotlabs/Module/Help.php')
-rw-r--r--Zotlabs/Module/Help.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/Zotlabs/Module/Help.php b/Zotlabs/Module/Help.php
index ce05035b3..bfe1d4e12 100644
--- a/Zotlabs/Module/Help.php
+++ b/Zotlabs/Module/Help.php
@@ -17,7 +17,7 @@ class Help extends \Zotlabs\Web\Controller {
function get() {
nav_set_selected('Help');
- if($_REQUEST['search']) {
+ if(isset($_REQUEST['search']) && $_REQUEST['search']) {
$o .= '<div id="help-content" class="generic-content-wrapper">';
$o .= '<div class="section-title-wrapper">';
$o .= '<h2>' . t('Documentation Search') . ' - ' . htmlspecialchars($_REQUEST['search']) . '</h2>';
@@ -44,8 +44,8 @@ class Help extends \Zotlabs\Web\Controller {
return $o;
}
-
-
+
+
if(argc() > 2 && argv(argc()-2) === 'assets') {
$path = '';
for($x = 1; $x < argc(); $x ++) {
@@ -87,11 +87,12 @@ class Help extends \Zotlabs\Web\Controller {
'tutorials' => t('Tutorials')
];
+ $heading = '';
if(array_key_exists(argv(1), $headings))
$heading = $headings[argv(1)];
$content = get_help_content();
-
+
$language = determine_help_language()['language'];
return replace_macros(get_markup_template('help.tpl'), array(