]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-usr_online.php
Legacy comments removed, description for ext-network expanded:
[mailer.git] / inc / modules / admin / what-usr_online.php
index fbc6143f4832471a7a1e5c18513777590b95312f..a572112347906334fb5e5bd0738a2127335aed7e 100644 (file)
@@ -59,7 +59,7 @@ if (isExtensionActive('online')) {
        // Check for online users
        $result = SQL_QUERY("SELECT `id`, `ip`, `userid`, `refid`, `module`, `action`, `what`, `is_member`, `is_admin`, `timestamp` FROM `{?_MYSQL_PREFIX?}_online` ORDER by `timestamp` DESC",
                __FILE__, __LINE__);
-       if (SQL_NUMROWS($result) > 0) {
+       if (!SQL_HASZERONUMS($result)) {
                // List all online users
                $OUT = '';
                while ($row = SQL_FETCHARRAY($result)) {
@@ -86,7 +86,6 @@ if (isExtensionActive('online')) {
 
                // Remember rows and fancy time in array
                $content['rows']           = $OUT;
-               $content['online_timeout'] = '{--ONLINE_TIMEOUT_IS--}';
 
                // Load footer template
                loadTemplate('admin_list_online', false, $content);