Skip to content

Commit

Permalink
fix(BackupJob): use array_merge instead of +
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
  • Loading branch information
marcelklehr committed Jun 24, 2024
1 parent 339f5d3 commit f63a196
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/BackgroundJobs/BackupJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function __construct(

protected function run($argument) {
$userIds = $this->config->getUsersForUserValue('bookmarks', 'backup.enabled', (string) true); // if users have set this in older versions
$userIds += $this->config->getUsersForUserValue('bookmarks', 'backup.enabled', 'true');
$userIds = array_merge($userIds, $this->config->getUsersForUserValue('bookmarks', 'backup.enabled', 'true'));
$userIds = array_unique($userIds);
if (empty($userIds)) {
return;
Expand Down

0 comments on commit f63a196

Please sign in to comment.