Ignore:
Timestamp:
Sep 5, 2003, 9:27:45 PM (21 years ago)
Author:
z0rglub
Message:

Correcting a bug in special categories (favorites, most seen, most
recent... non numeric categories) : when a picture is linked to more than
one category, it's only displayed once.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_category.inc.php

    r61 r64  
    494494        $page['title'] = $lang['favorites'];
    495495
    496         $page['where'] = ', '.PREFIX_TABLE.'favorites';
     496        $page['where'] = ', '.PREFIX_TABLE.'favorites AS fav';
    497497        $page['where'].= ' WHERE user_id = '.$user['id'];
    498         $page['where'].= ' AND image_id = id';
     498        $page['where'].= ' AND fav.image_id = id';
    499499     
    500500        $query = 'SELECT COUNT(*) AS nb_total_images';
Note: See TracChangeset for help on using the changeset viewer.