PHP 8.1 fixes; fixed adding users
This commit is contained in:
@@ -112,6 +112,8 @@ class PatchingController extends mfBaseController {
|
||||
$new_filter = [];
|
||||
//var_dump($filter);
|
||||
|
||||
if(!is_array($filter)) $filter = [];
|
||||
|
||||
if(array_key_exists("hide_delayed_finish", $filter)) {
|
||||
if($filter["hide_delayed_finish"] == "1") {
|
||||
$new_filter["hide_delayed_finish"] = true;
|
||||
|
||||
@@ -291,7 +291,7 @@ class PatchingModel {
|
||||
return $items;
|
||||
}
|
||||
|
||||
private function getTerminationSqlFilter($filter = []) {
|
||||
private static function getTerminationSqlFilter($filter = []) {
|
||||
$where = "1=1 ";
|
||||
if(!is_array($filter) || !count($filter)) {
|
||||
return $where;
|
||||
@@ -358,7 +358,7 @@ class PatchingModel {
|
||||
return $where;
|
||||
}
|
||||
|
||||
private function getPatchingSqlFilter($filter = []) {
|
||||
private static function getPatchingSqlFilter($filter = []) {
|
||||
$where = "1=1 ";
|
||||
if(!is_array($filter) || !count($filter)) {
|
||||
return $where;
|
||||
|
||||
Reference in New Issue
Block a user