SF.net SVN: phpwiki:[10671] trunk/lib/plugin/WhoIsOnline.php

vargenau--- via phpwiki-checkins <[email protected]>
Newsgroups gmane.comp.web.wiki.phpwiki.checkins
Message-ID <[email protected]>
Revision: 10671
          http://sourceforge.net/p/phpwiki/code/10671
Author:   vargenau
Date:     2021-11-21 19:47:44 +0000 (Sun, 21 Nov 2021)
Log Message:
-----------
Ensure $stats is an array

Modified Paths:
--------------
    trunk/lib/plugin/WhoIsOnline.php

Modified: trunk/lib/plugin/WhoIsOnline.php
===================================================================
--- trunk/lib/plugin/WhoIsOnline.php	2021-11-21 19:37:12 UTC (rev 10670)
+++ trunk/lib/plugin/WhoIsOnline.php	2021-11-21 19:47:44 UTC (rev 10671)
@@ -196,6 +196,7 @@
                 $dbi->set('stats', $stats);
             }
         } else {
+            $stats = array();
             $stats['max_online_num'] = $num_users;
             $stats['max_online_time'] = time();
             $dbi->set('stats', $stats);

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.