[Solar-svn] Revision 3207
pmjones at solarphp.com
pmjones at solarphp.com
Mon Jun 9 17:49:24 CDT 2008
Solar_App_Bookmarks: [FIX] Only set count and pages when there is pager info to be had.
Modified: trunk/Solar/App/Bookmarks/Layout/_local.php
===================================================================
--- trunk/Solar/App/Bookmarks/Layout/_local.php 2008-06-06 21:12:15 UTC (rev 3206)
+++ trunk/Solar/App/Bookmarks/Layout/_local.php 2008-06-09 22:49:23 UTC (rev 3207)
@@ -89,7 +89,6 @@
unset($uri->query['page']);
$tmp = array();
foreach ($this->tags_in_use as $tag) {
- $count = 'x';
$uri->setPath("$action/{$tag->name}");
$tmp[] = "<li>" . $this->action($uri, $tag->name) . " ({$tag->count})</li>";
}
Modified: trunk/Solar/App/Bookmarks.php
===================================================================
--- trunk/Solar/App/Bookmarks.php 2008-06-06 21:12:15 UTC (rev 3206)
+++ trunk/Solar/App/Bookmarks.php 2008-06-09 22:49:23 UTC (rev 3207)
@@ -567,10 +567,12 @@
));
// assign everything else for the view
- $total = $this->list->getPagerInfo();
+ if ($this->list) {
+ $total = $this->list->getPagerInfo();
+ $this->count = $total['count'];
+ $this->pages = $total['pages'];
+ }
- $this->count = $total['count'];
- $this->pages = $total['pages'];
$this->order = $this->_query('order');
$this->page = $params['page'];
$this->owner_handle = null; // requested owner_handle
More information about the Solar-svn
mailing list