Skip to content

Commit

Permalink
Correctly pass user name.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Jun 2, 2017
1 parent 79b91c8 commit 00e1331
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions mnemo/lib/Application.php
Expand Up @@ -304,13 +304,13 @@ public function backup(array $users = array())
$notepads[$share->getId()] = $share->toHash();
$backup->collections[] = new Backup\Collection(
new Mnemo\Backup\Notes($factory->create($notepad)),
'user',
$user,
'notes'
);
}
$backup->collections[] = new Backup\Collection(
new ArrayIterator($notepads),
'user',
$user,
'notepads'
);
if ($pushed === true) {
Expand Down
4 changes: 2 additions & 2 deletions nag/lib/Application.php
Expand Up @@ -396,13 +396,13 @@ public function backup(array $users = array())
$tasklists[$share->getId()] = $share->toHash();
$backup->collections[] = new Backup\Collection(
new Nag\Backup\Tasks($factory->create($share->getName())),
'user',
$user,
'tasks'
);
}
$backup->collections[] = new Backup\Collection(
new ArrayIterator($tasklists),
'user',
$user,
'tasklists'
);
if ($pushed === true) {
Expand Down

0 comments on commit 00e1331

Please sign in to comment.