From: Reini U. <ru...@us...> - 2006-04-15 12:27:44
|
Update of /cvsroot/phpwiki/phpwiki/lib/plugin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7248/plugin Modified Files: WikiAdminUtils.php Log Message: proper _rows init Index: WikiAdminUtils.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/plugin/WikiAdminUtils.php,v retrieving revision 1.18 retrieving revision 1.19 diff -u -2 -b -p -d -r1.18 -r1.19 --- WikiAdminUtils.php 10 Sep 2005 11:30:40 -0000 1.18 +++ WikiAdminUtils.php 15 Apr 2006 12:27:40 -0000 1.19 @@ -229,5 +229,8 @@ extends WikiPlugin if (!$prefs->get('userid')) $prefs->set('userid',$username); + if (!empty($pagelist->_rows)) $group = (int)(count($pagelist->_rows) / $pagelist->_group_rows); + else + $group = 0; $class = ($group % 2) ? 'oddrow' : 'evenrow'; $row = HTML::tr(array('class' => $class)); |