Changeset 1332


Ignore:
Timestamp:
May 31, 2006, 11:46:26 PM (18 years ago)
Author:
plg
Message:

merge -r1330:1331 from trunk to branch 1.6 (bug 378 fixed).

Location:
branches/branch-1_6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_6/feed.php

    r1018 r1332  
    120120if ('' == $user['forbidden_categories'])
    121121{
    122   $user['forbidden_categories'] = '-1';
     122  $user['forbidden_categories'] = '0';
    123123}
    124124
  • branches/branch-1_6/include/functions_user.inc.php

    r1282 r1332  
    346346
    347347  if ( empty($forbidden_array) )
    348   {// at least, the list contains -1 values. This category does not exists so
    349    // where clauses such as "WHERE category_id NOT IN(-1)" will always be
     348  {// at least, the list contains 0 value. This category does not exists so
     349   // where clauses such as "WHERE category_id NOT IN(0)" will always be
    350350   // true.
    351     array_push($forbidden_array, '-1');
     351    array_push($forbidden_array, 0);
    352352  }
    353353
Note: See TracChangeset for help on using the changeset viewer.