]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/action-online.php
Fixed handling of float values, ext-surfbar continued:
[mailer.git] / inc / modules / guest / action-online.php
index 05e5e187200430f1abc826a296275f1dfe4d7897..18db019120df36a2b868b1684c12b3e5f09fe6f7 100644 (file)
@@ -47,7 +47,7 @@ if (!defined('__SECURITY')) {
 }
 
 // Total visitors online
-$total = countSumTotalData('', 'online', 'id', 'userid', true);
+$total = countSumTotalData('', 'online', 'id', 'userid', TRUE);
 
 if (getConfig('mad_count') < $total) {
        // Update counter
@@ -56,14 +56,14 @@ if (getConfig('mad_count') < $total) {
 
 // Prepare content
 $content = array(
-       'guests'  => countSumTotalData('N', 'online', 'id', 'is_admin', true, " AND `is_member`='N'"),
-       'members' => countSumTotalData('N', 'online', 'id', 'is_admin', true, " AND `is_member`='Y'"),
-       'admins'  => countSumTotalData('Y', 'online', 'id', 'is_admin', true),
+       'guests'  => countSumTotalData('N', 'online', 'id', 'is_admin', TRUE, " AND `is_member`='N'"),
+       'members' => countSumTotalData('N', 'online', 'id', 'is_admin', TRUE, " AND `is_member`='Y'"),
+       'admins'  => countSumTotalData('Y', 'online', 'id', 'is_admin', TRUE),
        'total'   => $total
 );
 
 // Output table
-$GLOBALS['rows'] .= loadTemplate('online_now', true, $content);
+$GLOBALS['rows'] .= loadTemplate('online_now', TRUE, $content);
 
 // Add more links in this block
 runFilterChain('online_extra_links');