Index: mod1/index.php =================================================================== --- mod1/index.php (révision 11768) +++ mod1/index.php (copie de travail) @@ -224,7 +224,7 @@ $treedb->where_default .= ' AND sys_language_uid=0'; - if ($uid OR $GLOBALS['BE_USER']->isAdmin()) { + if (isset($uid) OR $GLOBALS['BE_USER']->isAdmin()) { $recCount = $treedb->countSubRecords($uid); } else { @@ -277,7 +277,7 @@ $treedb->setResReturn(true); $treedb->setSortFields($orderBy); - if ($uid OR $GLOBALS['BE_USER']->isAdmin()) { + if (isset($uid) OR $GLOBALS['BE_USER']->isAdmin()) { $dblist->res = $treedb->getSubRecords($uid, 'tx_dam_cat.*'); } else { $uids = implode(',',$mounts);