Changeset 1330


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

bug 378 fixed: category_id can't be -1 because the field is an unsigned
integer.

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

Legend:

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

    r944 r1330  
    308308if ('' == $user['forbidden_categories'])
    309309{
    310   $user['forbidden_categories'] = '-1';
     310  $user['forbidden_categories'] = '0';
    311311}
    312312
  • branches/branch-1_5/include/functions_user.inc.php

    r906 r1330  
    363363  // where clauses such as "WHERE category_id NOT IN(-1)" will always be
    364364  // true.
    365   array_push($forbidden_array, '-1');
     365  if (count($forbidden_array) == 0)
     366  {
     367    array_push($forbidden_array, 0);
     368  }
    366369 
    367370  return implode(',', $forbidden_array);
Note: See TracChangeset for help on using the changeset viewer.