phplist

NOTE:: Before reporting an issue, make sure you are running the latest version, currently 3.3.1


View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007060phplist applicationMessage Send Processpublic23-07-06 22:2418-02-08 14:06
Reporterhola 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version2.10.2 
Target Version2.10.7Fixed in Version2.10.4 
Summary0007060: Criteria does not refresh the correct amount
DescriptionIn send_core.php the following code used to calculate the number of users that equal the criteria statements displays the number of users that equal the result - however the wrong varibale is used:

$userids = array_unique($userids);
  $num_users = sizeof($userids);

  $count_query = sprintf('select * from %s where id in (%s)',$GLOBALS['tables']['user'],join(', ',$userids));

  if ($_GET["calculate"]) {
    printf('.. '.$GLOBALS['I18N']->get('%d users apply'),$num).'

';
  }

The printf statement for number of users should not be num but $num_users - like so:

if ($_GET["calculate"]) {
    printf('.. '.$GLOBALS['I18N']->get('%d users apply'),$num_users).'

';
  }

Additional:
I have no idea what this statement is in there for

 $count_query = sprintf('select * from %s where id in (%s)',$GLOBALS['tables']['user'],join(', ',$userids));
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to 0003721closed phplist 2.10.x 
related to 0006063resolvedmichiel Using multiple Criteria attributes at "ADVANCED CRITERIA MODE" gives false user filtering 

-  Notes
(0015847)
michiel (manager)
24-07-06 14:31

I just tried to reply to your email about the next release, but your mailserver bounced it, saying "looks like spam".


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker