diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-30 16:39:17 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-30 16:39:17 +0000 |
commit | 0b56fd406382b703833c673976c94dc5a87ab7e6 (patch) | |
tree | 6f498f1b373bd9f7f2a6bf4030cc5c19b2d84da3 /views | |
parent | d47c5951c46a9b7dda857685079cf39ab85e948c (diff) | |
download | elgg-0b56fd406382b703833c673976c94dc5a87ab7e6.tar.gz elgg-0b56fd406382b703833c673976c94dc5a87ab7e6.tar.bz2 |
Lists of comments etc no longer display "none found" if there aren't any.
git-svn-id: https://code.elgg.org/elgg/trunk@1609 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views')
-rw-r--r-- | views/default/navigation/pagination.php | 7 |
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;
}
|