diff options
author | rvelices <rv-github@modusoptimus.com> | 2008-05-04 09:55:50 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2008-05-04 09:55:50 +0000 |
commit | eca2a6dd94f4c30331387e7419632f7b4883b8c4 (patch) | |
tree | 277bc288d568dcdffb1ca60ff013d6bce594bb44 | |
parent | be31d7b2ded3679cf28d1bfac605c9576b034e1d (diff) |
merge r 2330 from trunk
- fix issue when random representant was true
git-svn-id: http://piwigo.org/svn/branches/branch-1_7@2331 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/category_cats.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/category_cats.inc.php b/include/category_cats.inc.php index 17820a6a0..dabe072c4 100644 --- a/include/category_cats.inc.php +++ b/include/category_cats.inc.php @@ -95,7 +95,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 |