Changeset 21800 for branches


Ignore:
Timestamp:
Mar 23, 2013, 10:33:47 AM (8 years ago)
Author:
rvelices
Message:

Merge -r21799 from trunk to branch 2.5 : fix unquoted string + better image sql filter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/include/ws_functions.inc.php

    r20999 r21800  
    5555  if ( is_numeric($params['f_min_rate']) )
    5656  {
    57     $clauses[] = $tbl_name.'rating_score>'.$params['f_min_rate'];
     57    $clauses[] = $tbl_name.'rating_score>='.$params['f_min_rate'];
    5858  }
    5959  if ( is_numeric($params['f_max_rate']) )
     
    6363  if ( is_numeric($params['f_min_hit']) )
    6464  {
    65     $clauses[] = $tbl_name.'hit>'.$params['f_min_hit'];
     65    $clauses[] = $tbl_name.'hit>='.$params['f_min_hit'];
    6666  }
    6767  if ( is_numeric($params['f_max_hit']) )
     
    8787  if ( is_numeric($params['f_min_ratio']) )
    8888  {
    89     $clauses[] = $tbl_name.'width/'.$tbl_name.'height>'.$params['f_min_ratio'];
     89    $clauses[] = $tbl_name.'width/'.$tbl_name.'height>='.$params['f_min_ratio'];
    9090  }
    9191  if ( is_numeric($params['f_max_ratio']) )
     
    19781978  {
    19791979    $tag_ids = array();
    1980     if (is_array($params[tags]))
    1981     {
    1982       foreach ($params[tags] as $tag_name)
     1980    if (is_array($params['tags']))
     1981    {
     1982      foreach ($params['tags'] as $tag_name)
    19831983      {
    19841984        $tag_id = tag_id_from_tag_name($tag_name);
Note: See TracChangeset for help on using the changeset viewer.