Display a message that no requests matched the filter criteria instead
of showing an empty package requests table.

Signed-off-by: Lukas Fleischer <[email protected]>
---
 web/template/pkgreq_results.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/web/template/pkgreq_results.php b/web/template/pkgreq_results.php
index 74fcb10..fb49dfa 100644
--- a/web/template/pkgreq_results.php
+++ b/web/template/pkgreq_results.php
@@ -1,3 +1,6 @@
+<?php if (count($results) == 0): ?>
+<p><?= __("No requests matched your search criteria.") ?></p>
+<?php else: ?>
 <?php if ($show_headers): ?>
 <div class="pkglist-stats">
        <p>
@@ -129,3 +132,4 @@
        <?php endif; ?>
 </div>
 <?php endif; ?>
+<?php endif; ?>
-- 
2.12.0

Reply via email to