diff options
author | Mario Vavti <mario@mariovavti.com> | 2022-10-13 16:38:18 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2022-10-13 16:38:18 +0200 |
commit | 71accb6b0a2aa5e3c77f7ef73d685639d0c6526a (patch) | |
tree | f38a48b65f692aab7076bb0ba23818295c2960f1 /Zotlabs/Module/Help.php | |
parent | 2a95500b6538f130df9434f1fb253247872679e8 (diff) | |
download | volse-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.php | 9 |
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( |