diff options
Diffstat (limited to '')
-rw-r--r-- | include/ws_functions.inc.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/ws_functions.inc.php b/include/ws_functions.inc.php index be453b6f7..fa1be9e1d 100644 --- a/include/ws_functions.inc.php +++ b/include/ws_functions.inc.php @@ -68,13 +68,13 @@ function ws_std_image_sql_filter( $params, $tbl_name='' ) { $clauses[] = $tbl_name.'hit<='.$params['f_max_hit']; } - if ( isset($params['f_min_date_posted']) ) + if ( isset($params['f_min_date_available']) ) { - $clauses[] = $tbl_name."date_available>='".$params['f_min_date_posted']."'"; + $clauses[] = $tbl_name."date_available>='".$params['f_min_date_available']."'"; } - if ( isset($params['f_max_date_posted']) ) + if ( isset($params['f_max_date_available']) ) { - $clauses[] = $tbl_name."date_available<'".$params['f_max_date_posted']."'"; + $clauses[] = $tbl_name."date_available<'".$params['f_max_date_available']."'"; } if ( isset($params['f_min_date_created']) ) { |