Ignore:
Timestamp:
Nov 11, 2009, 7:33:31 PM (15 years ago)
Author:
tiico
Message:

[ConcoursPhoto] Correct param to mask author (bug)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/ConcoursPhoto/include/Concours.class.php

    r4252 r4253  
    732732            if ($this->my_config['mask_author'] && $this->my_config['mask_author'] == true)
    733733            {
    734                 // Request for prepared concours
     734                // Request for all concours prepared & actived
    735735                $query = '
    736736                    SELECT *
    737737                    FROM ' . CONCOURS_TABLE .'
    738738                    WHERE category =' . $page['category']['id'] . '
    739                     AND time_to_sec(TIMEDIFF(begin_date,now())) > 0
     739                    AND time_to_sec(TIMEDIFF(now(), end_date)) < 0
    740740                                ';
     741                echo $query;
    741742                $result = pwg_query($query);
    742                 if ($result)
     743                if ($result && mysql_fetch_assoc($result))
    743744                    $template->assign('INFO_AUTHOR',l10n('concours_img_author'));
    744745            }
Note: See TracChangeset for help on using the changeset viewer.