Plugin Directory

Changeset 890153


Ignore:
Timestamp:
04/09/2014 03:06:22 PM (12 years ago)
Author:
slickorange
Message:

Bug fixed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • permit-press-access-codes/trunk/press-permit-access-codes.php

    r890149 r890153  
    7070    $groups_array = pp_get_groups();
    7171    $combinations = array();
    72     $option=get_option('access_code:'.$group->ID);
     72   
    7373    foreach ($groups_array as $group){
     74        $option=get_option('access_code:'.$group->ID);
    7475        if(!empty($option))
    7576            $combinations[$group->ID] = get_option('access_code:'.$group->ID);
     
    8384    $groups_array = pp_get_groups();
    8485    $combinations = array();
     86   
     87    foreach ($groups_array as $group){
    8588    $option=get_option('access_code:'.$group->ID);
    86     foreach ($groups_array as $group){
    8789        if(!empty($option))
    8890            $combinations[$group->ID] = $group->name;
Note: See TracChangeset for help on using the changeset viewer.