Partial php 8.1 changes (#6729)
* Partial php 8.1 changes * Update extension_settings.php
This commit is contained in:
parent
a93535d990
commit
1d23d548d0
|
|
@ -55,7 +55,7 @@
|
|||
}
|
||||
|
||||
//process the http post data by action
|
||||
if ($action != '' && is_array($extension_settings) && @sizeof($extension_settings) != 0) {
|
||||
if (!empty($action) && is_array($extension_settings)) {
|
||||
|
||||
//validate the token
|
||||
$token = new token;
|
||||
|
|
@ -94,8 +94,8 @@
|
|||
}
|
||||
|
||||
//get order and order by
|
||||
$order_by = $_GET["order_by"];
|
||||
$order = $_GET["order"];
|
||||
$order_by = $_GET["order_by"] ?? '';
|
||||
$order = $_GET["order"] ?? '';
|
||||
|
||||
//add the search
|
||||
if (isset($_GET["search"])) {
|
||||
|
|
@ -154,7 +154,7 @@
|
|||
$parameters['extension_uuid'] = $extension_uuid;
|
||||
$parameters['domain_uuid'] = $domain_uuid;
|
||||
$database = new database;
|
||||
$extension_settings = $database->select($sql, $parameters, 'all');
|
||||
$extension_settings = $database->select($sql, $parameters ?? null, 'all');
|
||||
unset($sql, $parameters);
|
||||
|
||||
//create token
|
||||
|
|
@ -194,9 +194,9 @@
|
|||
// }
|
||||
//}
|
||||
echo "<input type='text' class='txt list-search' name='search' id='search' value=\"".escape($search)."\" placeholder=\"".$text['label-search']."\" onkeydown='list_search_reset();'>";
|
||||
echo button::create(['label'=>$text['button-search'],'icon'=>$_SESSION['theme']['button_icon_search'],'type'=>'submit','id'=>'btn_search','style'=>($search != '' ? 'display: none;' : null)]);
|
||||
echo button::create(['label'=>$text['button-reset'],'icon'=>$_SESSION['theme']['button_icon_reset'],'type'=>'button','id'=>'btn_reset','link'=>'extension_settings.php?id='.$extension_uuid,'style'=>($search == '' ? 'display: none;' : null)]);
|
||||
if ($paging_controls_mini != '') {
|
||||
echo button::create(['label'=>$text['button-search'],'icon'=>$_SESSION['theme']['button_icon_search'],'type'=>'submit','id'=>'btn_search','style'=>(!empty($search) ? 'display: none;' : null)]);
|
||||
echo button::create(['label'=>$text['button-reset'],'icon'=>$_SESSION['theme']['button_icon_reset'],'type'=>'button','id'=>'btn_reset','link'=>'extension_settings.php?id='.$extension_uuid,'style'=>(empty($search) ? 'display: none;' : null)]);
|
||||
if (!empty($paging_controls_mini)) {
|
||||
echo "<span style='margin-left: 15px;'>".$paging_controls_mini."</span>\n";
|
||||
}
|
||||
echo " <input type='hidden' name='id' value='".$extension_uuid."'>\n";
|
||||
|
|
|
|||
Loading…
Reference in New Issue