Changeset 167


Ignore:
Timestamp:
Oct 4, 2003, 7:13:19 PM (21 years ago)
Author:
z0rglub
Message:

Bug in the deletion of favorites : even if the category was authorized, the
favorites where deleted for the user

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions.php

    r133 r167  
    280280      array_push( $picture_cat, $picture_row['category_id'] );
    281281    }
    282     if ( count( array_diff( $picture_cat, $restricted_cat ) ) > 0 )
     282    if ( count( array_diff( $picture_cat, $restricted_cat ) ) == 0 )
    283283    {
    284284      $query = 'DELETE FROM '.PREFIX_TABLE.'favorites';
Note: See TracChangeset for help on using the changeset viewer.