First album bug fixed

This commit is contained in:
Tobias Reich 2014-01-27 23:58:51 +01:00
parent cec028dd53
commit e3f695d502
2 changed files with 5 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -105,8 +105,10 @@ album = {
params = "addAlbum&title=" + escape(encodeURI(title));
lychee.api(params, function(data) {
if (data!==false) lychee.goto(data);
else lychee.error(null, params, data);
if (data!==false) {
if (data===true) data = 1; // Avoid first album to be true
lychee.goto(data);
} else lychee.error(null, params, data);
});