Ignore:
Timestamp:
Jul 20, 2009, 7:19:37 AM (15 years ago)
Author:
rvelices
Message:

correct bug in commit r3623 ( feature 1053 )

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/include/functions_user.inc.php

    r3623 r3641  
    333333      { // for non admins we forbid categories with no image (feature 1053)
    334334        $forbidden_ids = array();
    335         foreach ($user_cache_cats as $cat_id => $cat)
     335        foreach ($user_cache_cats as $cat)
    336336        {
    337337          if ($cat['count_images']==0)
    338338          {
    339             array_push($forbidden_ids, $cat_id);
    340             unset( $user_cache_cats[$cat_id] );
     339            array_push($forbidden_ids, $cat['cat_id']);
     340            unset( $user_cache_cats[$cat['cat_id']] );
    341341          }
    342342        }
Note: See TracChangeset for help on using the changeset viewer.