Changeset 1331


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

merge -r1329:1330 from branch 1.5 to trunk (bug 378 fixed).

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/feed.php

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

    r1284 r1331  
    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.