DatabasePrint: don't print Last-Modified if unknown

This commit is contained in:
Max Kellermann 2012-08-08 09:09:15 +02:00
parent 21792386d8
commit b4b1728b6f
2 changed files with 4 additions and 2 deletions

View File

@ -106,7 +106,8 @@ PrintPlaylistFull(struct client *client,
{
print_playlist_in_directory(client, directory, playlist.name);
time_print(client, "Last-Modified", playlist.mtime);
if (playlist.mtime > 0)
time_print(client, "Last-Modified", playlist.mtime);
return true;
}

View File

@ -119,7 +119,8 @@ print_spl_list(struct client *client, GPtrArray *list)
client_printf(client, "playlist: %s\n", playlist->name);
time_print(client, "Last-Modified", playlist->mtime);
if (playlist->mtime > 0)
time_print(client, "Last-Modified", playlist->mtime);
}
}