Skip to content

Commit

Permalink
correct bug in commit r3622 ( feature 1053 )
Browse files Browse the repository at this point in the history
git-svn-id: http://piwigo.org/svn/trunk@3640 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
rvelices committed Jul 20, 2009
1 parent cef0550 commit a8d561b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/functions_user.inc.php
Expand Up @@ -332,12 +332,12 @@ function getuserdata($user_id, $use_cache)
if ( !is_admin($userdata['status']) )
{ // for non admins we forbid categories with no image (feature 1053)
$forbidden_ids = array();
foreach ($user_cache_cats as $cat_id => $cat)
foreach ($user_cache_cats as $cat)
{
if ($cat['count_images']==0)
{
array_push($forbidden_ids, $cat_id);
unset( $user_cache_cats[$cat_id] );
array_push($forbidden_ids, $cat['cat_id']);
unset( $user_cache_cats[$cat['cat_id']] );
}
}
if ( !empty($forbidden_ids) )
Expand Down

0 comments on commit a8d561b

Please sign in to comment.