diff options
author | Max Kellermann <max@duempel.org> | 2012-08-08 09:09:15 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-08-08 09:27:42 +0200 |
commit | b4b1728b6f673c398205d078c4935166ab31eb0c (patch) | |
tree | e894a915ad27393e68de441bb6a9469c1079fe90 /src/DatabasePrint.cxx | |
parent | 21792386d835903d2f9e2d04a1860d60bb8488e2 (diff) | |
download | mpd-b4b1728b6f673c398205d078c4935166ab31eb0c.tar.gz mpd-b4b1728b6f673c398205d078c4935166ab31eb0c.tar.xz mpd-b4b1728b6f673c398205d078c4935166ab31eb0c.zip |
DatabasePrint: don't print Last-Modified if unknown
Diffstat (limited to '')
-rw-r--r-- | src/DatabasePrint.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/DatabasePrint.cxx b/src/DatabasePrint.cxx index 843d218cb..d22d4db8a 100644 --- a/src/DatabasePrint.cxx +++ b/src/DatabasePrint.cxx @@ -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; } |