mirror of
https://gh.llkk.cc/https://github.com/CaptainCore/captaincore-manager.git
synced 2025-10-03 14:04:44 +08:00
🐛 FIX: updateSettings
This commit is contained in:
parent
67ccbd6d43
commit
40a6904a37
1 changed files with 2 additions and 2 deletions
|
@ -4317,8 +4317,8 @@ function captaincore_ajax_action_callback() {
|
||||||
// Saves update settings for a site
|
// Saves update settings for a site
|
||||||
$environment_update = [
|
$environment_update = [
|
||||||
'updates_enabled' => $value["updates_enabled"],
|
'updates_enabled' => $value["updates_enabled"],
|
||||||
'updates_exclude_themes' => implode(",", $value["updates_exclude_themes"]),
|
'updates_exclude_themes' => implode(",", $value["updates_exclude_themes"] ?? []),
|
||||||
'updates_exclude_plugins' => implode(",", $value["updates_exclude_plugins"]),
|
'updates_exclude_plugins' => implode(",", $value["updates_exclude_plugins"] ?? []),
|
||||||
'updated_at' => date("Y-m-d H:i:s")
|
'updated_at' => date("Y-m-d H:i:s")
|
||||||
];
|
];
|
||||||
$environment_id = ( new CaptainCore\Site( $post_id ) )->fetch_environment_id( $environment );
|
$environment_id = ( new CaptainCore\Site( $post_id ) )->fetch_environment_id( $environment );
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue