aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorgweltas <gweltas@piwigo.org>2004-08-29 13:53:48 +0000
committergweltas <gweltas@piwigo.org>2004-08-29 13:53:48 +0000
commit196f36176e5c1960d7f0df4ee491ffa7674e380f (patch)
treefd5ec5b88a7b99ba565b305b8f770dc124687d8c /include
parent38f7bcd8ac94db8c460fe3913bb7d19c81a2e7dc (diff)
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
Diffstat (limited to '')
-rw-r--r--include/functions_category.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions_category.inc.php b/include/functions_category.inc.php
index da3e5e31e..d4fb55aad 100644
--- a/include/functions_category.inc.php
+++ b/include/functions_category.inc.php
@@ -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']).')';
}