mirror of https://github.com/Bubka/2FAuth.git
Fix call on null object
This commit is contained in:
parent
86e7601328
commit
b56ee8b04f
|
@ -31,7 +31,7 @@ class SettingUpdateRequest extends FormRequest
|
|||
]
|
||||
];
|
||||
|
||||
if ($this->route()->parameter('settingName') == 'restrictList') {
|
||||
if ($this->route()?->parameter('settingName') == 'restrictList') {
|
||||
$rule['value'][] = new IsValideEmailList;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue