Skip to content

Commit

Permalink
Update settingsUpdate function
Browse files Browse the repository at this point in the history
  • Loading branch information
DariusIII committed Oct 28, 2024
1 parent 0436fca commit 5ee0399
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public static function settingValue($setting): mixed
public static function settingsUpdate(array $data = []): void
{
foreach ($data as $key => $value) {
self::query()->where('setting', $key)->update(['value' => \is_array($value) ? implode(', ', $value) : $value]);
self::query()->where('name', $key)->update(['value' => \is_array($value) ? implode(', ', $value) : $value]);
}
}
}

0 comments on commit 5ee0399

Please sign in to comment.