aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_category.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/functions_category.inc.php')
-rw-r--r--include/functions_category.inc.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/include/functions_category.inc.php b/include/functions_category.inc.php
index 47db0e75f..8ff06ede7 100644
--- a/include/functions_category.inc.php
+++ b/include/functions_category.inc.php
@@ -256,7 +256,18 @@ function count_user_total_images()
if ( count( $user['restrictions'] ) > 0 )
$query.= ' WHERE id NOT IN ('.$user['forbidden_categories'].')';
$query.= ';';
-
+
+// $query = '
+// SELECT COUNT(DISTINCT(image_id)) as total
+// FROM '.PREFIX_TABLE.'image_category';
+// if (count($user['restrictions']) > 0)
+// {
+// $query.= '
+// WHERE category_id NOT IN ('.$user['forbidden_categories'].')';
+// }
+// $query = '
+// ;';
+
$row = mysql_fetch_array( mysql_query( $query ) );
if ( !isset( $row['total'] ) ) $row['total'] = 0;