Browse Source

Fixed a bug where the albums-separator showed up without albums

Tobias Reich 9 years ago
parent
commit
47f4837f0c
2 changed files with 1 additions and 1 deletions
  1. 0 0
      dist/main.js
  2. 1 1
      src/scripts/view.js

File diff suppressed because it is too large
+ 0 - 0
dist/main.js


+ 1 - 1
src/scripts/view.js

@@ -151,7 +151,7 @@ view.albums = {
 			if (!lychee.publicMode) smartData = build.divider('Smart Albums') + build.album(albums.json.unsortedAlbum) + build.album(albums.json.starredAlbum) + build.album(albums.json.publicAlbum) + build.album(albums.json.recentAlbum);
 
 			/* Albums */
-			if (albums.json.content) {
+			if (albums.json.content&&albums.json.num!==0) {
 
 				$.each(albums.json.content, function() {
 					albums.parse(this);

Some files were not shown because too many files changed in this diff