aboutsummaryrefslogtreecommitdiffstats
path: root/category.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--category.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/category.php b/category.php
index 8de82086d..516be0238 100644
--- a/category.php
+++ b/category.php
@@ -295,10 +295,10 @@ else
if ( isset ( $page['cat'] ) )
{
// upload a picture in the category
- if ( is_numeric( $page['cat'] )
- and $page['cat_site_id'] == 1
- and $conf['upload_available']
- and $page['cat_uploadable'] )
+ if (is_numeric($page['cat'])
+ and $page['cat_site_id'] == 1
+ and $page['cat_dir'] != ''
+ and $page['cat_uploadable'])
{
$url = PHPWG_ROOT_PATH.'upload.php?cat='.$page['cat'];
$template->assign_block_vars(