Ignore:
Timestamp:
Jan 1, 2006, 6:02:18 PM (18 years ago)
Author:
nikrou
Message:

code simplification

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_5/admin/user_list.php

    r992 r997  
    265265          )
    266266        );
    267       $_values = array_values($collection);
    268       foreach ($page['filtered_users'] as $_key => $_value)
     267      foreach ($page['filtered_users'] as $filter_key => $filter_user)
    269268      {
    270         if (in_array($_value['id'],$_values)) {
    271           unset($page['filtered_users'][$_key]);
    272         }
     269        if (in_array($filter_user['id'], $collection))
     270        {
     271          unset($page['filtered_users'][$filter_key]);
     272        }
    273273      }
    274274    }
Note: See TracChangeset for help on using the changeset viewer.