art-web r573 - branches/art-hub/lib
- From: thos svn gnome org
- To: svn-commits-list gnome org
- Subject: art-web r573 - branches/art-hub/lib
- Date: Fri, 19 Dec 2008 22:00:45 +0000 (UTC)
Author: thos
Date: Fri Dec 19 22:00:44 2008
New Revision: 573
URL: http://svn.gnome.org/viewvc/art-web?rev=573&view=rev
Log:
Don't print the page navigation if there is only one page!
Modified:
branches/art-hub/lib/pagination.php
Modified: branches/art-hub/lib/pagination.php
==============================================================================
--- branches/art-hub/lib/pagination.php (original)
+++ branches/art-hub/lib/pagination.php Fri Dec 19 22:00:44 2008
@@ -37,6 +37,10 @@
$num_pages = ceil ($this->total / $this->limit);
+ /* only one page, no point in printing navigation! */
+ if ($num_pages <= 1)
+ return;
+
if ($context > $num_pages)
$context = $num_pages;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]