Skip to content

Commit

Permalink
merge -r1329:1330 from branch 1.5 to trunk (bug 378 fixed).
Browse files Browse the repository at this point in the history
git-svn-id: http://piwigo.org/svn/trunk@1331 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
plegall committed May 31, 2006
1 parent b2e246a commit cfbadff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion feed.php
Expand Up @@ -119,7 +119,7 @@ function ts_to_iso8601($ts)
$user['status']);
if ('' == $user['forbidden_categories'])
{
$user['forbidden_categories'] = '-1';
$user['forbidden_categories'] = '0';
}

list($dbnow) = mysql_fetch_row(pwg_query('SELECT NOW();'));
Expand Down
8 changes: 4 additions & 4 deletions include/functions_user.inc.php
Expand Up @@ -345,10 +345,10 @@ function calculate_permissions($user_id, $user_status)
}

if ( empty($forbidden_array) )
{// at least, the list contains -1 values. This category does not exists so
// where clauses such as "WHERE category_id NOT IN(-1)" will always be
{// at least, the list contains 0 value. This category does not exists so
// where clauses such as "WHERE category_id NOT IN(0)" will always be
// true.
array_push($forbidden_array, '-1');
array_push($forbidden_array, 0);
}

return implode(',', $forbidden_array);
Expand Down Expand Up @@ -647,4 +647,4 @@ function is_adviser()

return ($user['adviser'] == 'true');
}
?>
?>

0 comments on commit cfbadff

Please sign in to comment.