summaryrefslogtreecommitdiffstats
path: root/templates/show_genres.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/show_genres.inc.php')
-rw-r--r--templates/show_genres.inc.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/show_genres.inc.php b/templates/show_genres.inc.php
index 1e60c8ba..512d1bb6 100644
--- a/templates/show_genres.inc.php
+++ b/templates/show_genres.inc.php
@@ -63,6 +63,11 @@ foreach ($object_ids as $genre_id) {
</td>
</tr>
<?php } // end foreach genres ?>
+<?php if (!count($object_ids)) { ?>
+<tr class="<?php echo flip_class(); ?>">
+ <td colspan="4"><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_genre"><?php echo Ajax::text('?page=browse&action=set_sort&sort=name',_('Genre'),'sort_genre_name_bottom'); ?></th>