From c00e4c7e7009529ba5b64812fbb4425a4b01d151 Mon Sep 17 00:00:00 2001 From: ghost Date: Sun, 2 Apr 2023 23:49:04 +0300 Subject: [PATCH] fix empty request title --- public/search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/search.php b/public/search.php index b238834..dd1ac8f 100644 --- a/public/search.php +++ b/public/search.php @@ -43,7 +43,7 @@ if (!empty($q)) { - <?php echo sprintf(_('%s - #%s - YGGo!'), htmlentities($q), $p) ?> + <?php echo (empty($q) ? _('Empty request - YGGo!') : ($p > 1 ? sprintf(_('%s - #%s - YGGo!'), htmlentities($q), $p) : sprintf(_('%s - YGGo!'), htmlentities($q)))) ?>