Changeset 9576


Ignore:
Timestamp:
Mar 8, 2011, 9:42:04 PM (10 years ago)
Author:
rvelices
Message:

bug 2195: webservices f_min_date_available not working

File:
1 edited

Legend:

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

    r9191 r9576  
    6969    $clauses[] = $tbl_name.'hit<='.$params['f_max_hit'];
    7070  }
    71   if ( isset($params['f_min_date_posted']) )
    72   {
    73     $clauses[] = $tbl_name."date_available>='".$params['f_min_date_posted']."'";
    74   }
    75   if ( isset($params['f_max_date_posted']) )
    76   {
    77     $clauses[] = $tbl_name."date_available<'".$params['f_max_date_posted']."'";
     71  if ( isset($params['f_min_date_available']) )
     72  {
     73    $clauses[] = $tbl_name."date_available>='".$params['f_min_date_available']."'";
     74  }
     75  if ( isset($params['f_max_date_available']) )
     76  {
     77    $clauses[] = $tbl_name."date_available<'".$params['f_max_date_available']."'";
    7878  }
    7979  if ( isset($params['f_min_date_created']) )
Note: See TracChangeset for help on using the changeset viewer.