aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_category.inc.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/functions_category.inc.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/functions_category.inc.php b/include/functions_category.inc.php
index 8e08a17d9..a691140d6 100644
--- a/include/functions_category.inc.php
+++ b/include/functions_category.inc.php
@@ -288,7 +288,7 @@ function get_cat_info( $id )
$cat = array();
$query = 'SELECT nb_images,id_uppercat,comment,site_id,galleries_url,dir';
- $query.= ',date_last,uploadable,status,visible';
+ $query.= ',date_last,uploadable,status,visible,representative_picture_id';
$query.= ' FROM '.PREFIX_TABLE.'categories AS a';
$query.= ', '.PREFIX_TABLE.'sites AS b';
$query.= ' WHERE a.id = '.$id;
@@ -303,6 +303,7 @@ function get_cat_info( $id )
$cat['uploadable'] = get_boolean( $row['uploadable'] );
$cat['status'] = $row['status'];
$cat['visible'] = get_boolean( $row['visible'] );
+ $cat['representative_picture_id'] = $row['representative_picture_id'];
$cat['name'] = array();