]> source.dussan.org Git - nextcloud-server.git/commitdiff
Create an array entry before filling it
authorVictor Dubiniuk <victor.dubiniuk@gmail.com>
Mon, 22 Jul 2013 18:02:56 +0000 (21:02 +0300)
committerVictor Dubiniuk <victor.dubiniuk@gmail.com>
Wed, 24 Jul 2013 18:48:03 +0000 (21:48 +0300)
core/js/share.js

index 7ff3205d8b02aa74089c6af8e25a652a9e1576cb..aec869dabc546fd8d5679918ed6faaafff6b465f 100644 (file)
@@ -92,6 +92,7 @@ OC.Share={
                        }
                }
                if (shares) {
+                       OC.Share.statuses[itemSource] = OC.Share.statuses[itemSource] || {};
                        OC.Share.statuses[itemSource]['link'] = link;
                } else {
                        delete OC.Share.statuses[itemSource];