Ignore:
Timestamp:
Mar 24, 2014, 9:19:22 PM (10 years ago)
Author:
plg
Message:

bug 3057: avoid warnings and SQL crash when encountering inconsistent
permissions + rewrite permissions consistancy check when setting albums
to private status.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/include/functions_category.inc.php

    r26461 r27925  
    539539      continue;
    540540
     541    // Piwigo before 2.5.3 may have generated inconsistent permissions, ie
     542    // private album A1/A2 permitted to user U1 but private album A1 not
     543    // permitted to U1.
     544    //
     545    // TODO 2.7: add an upgrade script to repair permissions and remove this
     546    // test
     547    if ( !isset($cats[ $cat['id_uppercat'] ]))
     548      continue;
     549
    541550    $parent = & $cats[ $cat['id_uppercat'] ];
    542551    $parent['nb_categories']++;
Note: See TracChangeset for help on using the changeset viewer.