Fix "Undefined variable: cnt"

This commit is contained in:
Jeffery To 2009-06-12 19:49:33 +08:00
parent 216ada5cc4
commit 1b76df4b6a
1 changed files with 1 additions and 0 deletions

View File

@ -113,6 +113,7 @@ class GroupsAction extends Action
$groups->orderBy('created DESC'); $groups->orderBy('created DESC');
$groups->limit($offset, $limit); $groups->limit($offset, $limit);
$cnt = 0;
if ($groups->find()) { if ($groups->find()) {
$gl = new GroupList($groups, null, $this); $gl = new GroupList($groups, null, $this);
$cnt = $gl->show(); $cnt = $gl->show();