Changeset 1699 in ExiteCMS


Ignore:
Timestamp:
08/26/08 15:28:21 (3 years ago)
Author:
hverton
Message:

fixed swapping 'and' and 'or' when evaluating forum rank group assignments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/forum/viewthread.php

    r1682 r1699  
    302302                if (is_array($groups)) { 
    303303                    // check for group matching as well, start with the opposite of the 'bail out' value 
    304                     $ranking_match = $data2['rank_groups_and']; 
     304                    $ranking_match = $data2['rank_groups_and'] ? false : true; 
    305305                    foreach($groups as $group) { 
    306                         if ($data2['rank_groups_and']) { 
     306                        if ($data2['rank_groups_and'] == 0) { 
    307307                            // all should match 
    308308                            if (!checkusergroup($data['post_author'], $group)) { 
Note: See TracChangeset for help on using the changeset viewer.