Create an array entry before filling it

This commit is contained in:
Victor Dubiniuk 2013-07-22 21:02:56 +03:00
parent 5160ea6063
commit ab997bdc68
1 changed files with 1 additions and 0 deletions

View 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];