PHP 8.1 fixes; fixed adding users
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user