Projects ⇒ Bugs ⇒ #608: Suspended accounts showing in totals ⇒ CPG Dragonfly™ CMS
Bug #608 Suspended accounts showing in totals
Project: Dragonfly 9.0.3 -> 9.3 Category: Blocks
Submitted: Friday, August 12, 2005 (19:48:29) Modified: Monday, January 01, 2007 (11:50:58)
Status: Closed Assigned to:
PHP Version: 4.3.10 HTTPD Server: Apache 1.3
Votes: 1
Vote results:
Avg. Score: 5.0 ± 0.0 Reproduced: 1 of 1 (100.0%)
Same PHP Version: 0 (0.0%) Same HTTPD Server: 0 (0.0%)

View/Vote Add Comment

by: Beldak
Description:
------------
In both blocks, block-User_Info.php and block-User_Info_small.php the total numbers of users shown is incorrectly displaying suspended users in the totals.

In block-User_Info.php line 100 is currently:
list($numusers) = $db->sql_ufetchrow("SELECT COUNT(*) FROM ".$user_prefix."_users WHERE user_id > 1 AND user_level >= 0", SQL_NUM, __FILE__);

This should be changed to remove the '=' sign after user_level and make it just user_level > 0

In block-User_Info_small.php , line 30 needs the same modification:
list($numusers) = $db->sql_ufetchrow('SELECT COUNT(*) FROM '.$user_prefix."_users WHERE user_id > 1 AND user_level >= 0",SQL_NUM,__FILE__,__LINE__);
by: akamu
This bug has been fixed in the CVS.

Snapshots of the sources are packaged every 6 hours; this change
will be in the next snapshot. You can grab the snapshot at the
Downloads section.

Thank you for the report, and for helping us to make CPG-Nuke 9.0.3 -> 9.1 better.

block-User_Info_small.php 9.9
block-User_Info.php 9.10
User Info

Welcome Anonymous



(Register)
Community

Support for DragonflyCMS in a other languages:

Deutsch
Español