aboutsummaryrefslogtreecommitdiffstats
path: root/include/category_cats.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2008-05-04 09:53:42 +0000
committerrvelices <rv-github@modusoptimus.com>2008-05-04 09:53:42 +0000
commit6bda149844c708b5488de2673b5e3e7fed9176ef (patch)
tree8ab91db9849a9586e8258fea1501d22ebeea8ccd /include/category_cats.inc.php
parent900b802112ed6a9d44c3ed2d91406299b930c61f (diff)
- fix issue when random representant was true
git-svn-id: http://piwigo.org/svn/trunk@2330 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/category_cats.inc.php')
-rw-r--r--include/category_cats.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/category_cats.inc.php b/include/category_cats.inc.php
index f93a64dd1..e7f9a168a 100644
--- a/include/category_cats.inc.php
+++ b/include/category_cats.inc.php
@@ -93,7 +93,7 @@ SELECT image_id
FROM '.CATEGORIES_TABLE.' AS c INNER JOIN '.IMAGE_CATEGORY_TABLE.' AS ic
ON ic.category_id = c.id';
$query.= '
- WHERE uppercats LIKE \''.$row['uppercats'].',%\''
+ WHERE (c.id='.$row['id'].' OR uppercats LIKE \''.$row['uppercats'].',%\')'
.get_sql_condition_FandF
(
array