Changeset 27926 for trunk/include


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

merge r27925 from branch 2.6 to trunk

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
  • trunk/include/functions_category.inc.php

    r27369 r27926  
    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.