mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 09:39:10 +08:00
update: fix config save
This commit is contained in:
parent
9d9c977ff1
commit
512c48adeb
@ -171,7 +171,7 @@ class ConfigController extends Controller
|
||||
{
|
||||
$data = $request->validated();
|
||||
$config = config('v2board');
|
||||
foreach ($config as $k => $v) {
|
||||
foreach (ConfigSave::RULES as $k => $v) {
|
||||
if (!in_array($k, array_keys(ConfigSave::RULES))) {
|
||||
unset($config[$k]);
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user