Merge pull request #29123 from nextcloud/bug/29119/decode-object-to-array

Set associative = true for cleanup job
pull/29128/head
Daniel 2021-10-07 21:31:55 +07:00 committed by GitHub
commit db226dbd35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

@ -59,7 +59,7 @@ class CleanUpJob extends \OCP\BackgroundJob\Job {
public function setArgument($argument) { public function setArgument($argument) {
parent::setArgument($argument); parent::setArgument($argument);
$args = \json_decode($argument); $args = \json_decode($argument, true);
$this->userId = (string)$args['userId']; $this->userId = (string)$args['userId'];
$this->subject = (string)$args['subject']; $this->subject = (string)$args['subject'];
$this->pwdPrefix = (string)$args['pp']; $this->pwdPrefix = (string)$args['pp'];