aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/default/navigation/pagination.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/views/default/navigation/pagination.php b/views/default/navigation/pagination.php
index 35de9b3da..a4e2f16ac 100644
--- a/views/default/navigation/pagination.php
+++ b/views/default/navigation/pagination.php
@@ -32,6 +32,11 @@
} else {
$word = $vars['word'];
}
+ if (isset($vars['nonefound'])) {
+ $nonefound = $vars['nonefound'];
+ } else {
+ $nonefound = true;
+ }
$totalpages = ceil($count / $limit);
$currentpage = ceil($offset / $limit) + 1;
@@ -47,7 +52,7 @@
if ($count == 0) {
static $notfounddisplayed;
- if (!isset($notfounddisplayed)) {
+ if (!isset($notfounddisplayed) && $nonefound) {
echo elgg_echo("notfound");
$notfounddisplayed = true;
}