Permalink
Browse files

Fixed an error on the module method display page (permissions)

  • Loading branch information...
1 parent 31f875c commit 402c8d87e3c7045107dfdef4987ccf20f324bd84 @sluther committed May 5, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 modules/module_method/module_method.inc.php
@@ -256,7 +256,9 @@ function this_search_show($VAR, $construct, $type)
# get the total pages for this search:
$this->pages = 1;
- if ($search->results % $search->limit) $this->pages++;
+ if(null != $search) {
+ if ($search->results % $search->limit) $this->pages++;
+ }
# total pages
$smarty->assign('pages', $this->pages);
# current page

0 comments on commit 402c8d8

Please sign in to comment.