Fixed bug in countSubAlbums.

pull/581/head
Nils Asmussen 8 years ago
parent f7e31c2be7
commit 8b37d122b9

@ -211,6 +211,7 @@ contextMenu.photo = function(photoID, e) {
function countSubAlbums(photoIDs) {
let count = 0
if (album.subjson) {
for (i in photoIDs) {
for (j in album.subjson.albums) {
if (album.subjson.albums[j].id == photoIDs[i]) {
@ -219,6 +220,7 @@ function countSubAlbums(photoIDs) {
}
}
}
}
return count
}

Loading…
Cancel
Save