fix php warnings

This commit is contained in:
Mario
2022-10-20 10:25:11 +00:00
parent bb5b33a0d3
commit 03aeb88832
3 changed files with 4 additions and 2 deletions

View File

@@ -17,6 +17,8 @@ class Help extends \Zotlabs\Web\Controller {
function get() {
nav_set_selected('Help');
$o = '';
if(isset($_REQUEST['search']) && $_REQUEST['search']) {
$o .= '<div id="help-content" class="generic-content-wrapper">';
$o .= '<div class="section-title-wrapper">';

View File

@@ -33,7 +33,7 @@ class Search extends Controller {
require_once('include/security.php');
$format = (($_REQUEST['format']) ? $_REQUEST['format'] : '');
$format = $_REQUEST['format'] ?? '';
if ($format !== '') {
$update = $load = 1;
}

View File

@@ -248,7 +248,7 @@ function search_doc_files($s) {
$r[$x]['text'] = substr($r[$x]['body'], $start, $dislen);
$r[$x]['rank'] = 0;
if($r[$x]['term']) {
if(isset($r[$x]['term'])) {
foreach($r[$x]['term'] as $t) {
if(stristr($t['term'],$s)) {
$r[$x]['rank'] ++;