PHP 8.1 fixes; fixed adding users

This commit is contained in:
Frank Schubert
2022-08-09 16:08:04 +02:00
parent e055181e9f
commit 31241f79cf
60 changed files with 85 additions and 57 deletions

View File

@@ -31,7 +31,7 @@ class mfRouter {
if(defined("DEFAULT_ROUTE") && strlen(DEFAULT_ROUTE)) {
$defroute=explode("_",DEFAULT_ROUTE);
$this->default['mod']=$defroute[0];
if($defroute[1]) {
if(count($defroute) == 2 && $defroute[1]) {
$this->default['action']=$defroute[1];
}
@@ -49,9 +49,9 @@ class mfRouter {
// get mod and action
if(preg_match('/^([^_]+)(?:_(.+)?)?$/',$request['action'],$m)) {
$umod = $m[1];
$this->mod=$m[1];
$this->action="Index";
if($m[2]) {
$this->mod = $m[1];
$this->action = "Index";
if(count($m) == 3 && $m[2]) {
$uaction = $m[2];
$this->action=$m[2];
}