- foreach ($putObj->{'note-changes'} as $noteUpdate) {
- $note = $deps->notes->load($username, $noteUpdate->guid);
+ foreach ($arPut['note-changes'] as $noteUpdate) {
+ //owncloud converts object to array, so we reverse
+ $noteUpdate = (object) $noteUpdate;
+
+ $note = $this->notes->load($username, $noteUpdate->guid);