mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
fix php warnings
This commit is contained in:
@@ -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">';
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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'] ++;
|
||||
|
||||
Reference in New Issue
Block a user