Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CarnetApp/CarnetNextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPhie <phie@phie.ovh>2019-08-18 16:54:56 +0300
committerPhie <phie@phie.ovh>2019-08-18 16:54:56 +0300
commit70442d92a9869b13aaf282dccf31433ab66f4d1d (patch)
tree4c629635b4e8eae920f4b0918ec89253ba84203e /lib
parent91542f984bf6aaa8ff028c9b68e309b26ca7ce6c (diff)
fix metadata of moved notes
Diffstat (limited to 'lib')
-rwxr-xr-xlib/Controller/NoteController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Controller/NoteController.php b/lib/Controller/NoteController.php
index 95b2b63..8ba6302 100755
--- a/lib/Controller/NoteController.php
+++ b/lib/Controller/NoteController.php
@@ -119,8 +119,8 @@
}
foreach($recents['data'] as $item){
$path = $item['path'];
- if(array_key_exists('newpath', $item) && $item['newpath'] != null){
- $path = $item['newpath'];
+ if(array_key_exists('newPath', $item) && $item['newPath'] != null){
+ $path = $item['newPath'];
if(in_array($item['path'], $paths)){
array_splice($paths, array_search($item['path'], $paths), 1);
}