summaryrefslogtreecommitdiffstats
path: root/templates/show_playlists.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/show_playlists.inc.php')
-rw-r--r--templates/show_playlists.inc.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/show_playlists.inc.php b/templates/show_playlists.inc.php
index 553d65f5..3cfa81bd 100644
--- a/templates/show_playlists.inc.php
+++ b/templates/show_playlists.inc.php
@@ -48,6 +48,11 @@ foreach ($object_ids as $playlist_id) {
<?php require Config::get('prefix') . '/templates/show_playlist_row.inc.php'; ?>
</tr>
<?php } // end foreach ($playlists as $playlist) ?>
+<?php if (!count($object_ids)) { ?>
+<tr class="<?php echo flip_class(); ?>">
+ <td colspan="6"><span class="fatalerror"><?php echo _('Not Enough Data'); ?></span></td>
+</tr>
+<?php } ?>
<tr class="th-bottom">
<th class="cel_add"><?php echo _('Add'); ?></th>
<th class="cel_playlist"><?php echo Ajax::text('?page=browse&action=set_sort&sort=name',_('Playlist Name'),'playlist_sort_name_bottom'); ?></th>