Call to get_plain_structure() replaced by a call to get_user_plain_structure()

git-svn-id: http://piwigo.org/svn/trunk@499 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
gweltas
2004-08-29 13:53:48 +00:00
parent 38f7bcd8ac
commit 196f36176e
3 changed files with 32 additions and 34 deletions
+1 -1
View File
@@ -122,7 +122,7 @@ function get_user_plain_structure()
if ( !$user['expand'] )
{
$query.= ' AND (id_uppercat is NULL';
if ( count( $page['tab_expand'] ) > 0 )
if ( isset ($page['tab_expand']) && count( $page['tab_expand'] ) > 0 )
{
$query.= ' OR id_uppercat IN ('.implode(',',$page['tab_expand']).')';
}