SF.net SVN: phpwiki:[10655] trunk/lib/PageList.php

vargenau--- via phpwiki-checkins <[email protected]>
Newsgroups gmane.comp.web.wiki.phpwiki.checkins
Message-ID <[email protected]>
Revision: 10655
          http://sourceforge.net/p/phpwiki/code/10655
Author:   vargenau
Date:     2021-11-17 18:12:35 +0000 (Wed, 17 Nov 2021)
Log Message:
-----------
explicitly cast to int to avoid warning

Modified Paths:
--------------
    trunk/lib/PageList.php

Modified: trunk/lib/PageList.php
===================================================================
--- trunk/lib/PageList.php	2021-11-17 17:28:49 UTC (rev 10654)
+++ trunk/lib/PageList.php	2021-11-17 18:12:35 UTC (rev 10655)
@@ -1808,7 +1808,7 @@
         foreach (array_reverse($rows) as $one_row) {
             $pagehtml = $one_row['render'];
             if (!$pagehtml) continue;
-            $group = ($i++ / $this->_group_rows);
+            $group = (int)($i++ / $this->_group_rows);
             //TODO: here we switch every row, in tables every third.
             //      unification or parametrized?
             $class = ($group % 2) ? 'oddrow' : 'evenrow';

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.