/[drupal]/contributions/modules/votingapi/votingapi.module
ViewVC logotype

Diff of /contributions/modules/votingapi/votingapi.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.46.2.15, Thu Oct 9 21:12:35 2008 UTC revision 1.46.2.16, Thu Jan 1 00:40:30 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: votingapi.module,v 1.46.2.14 2008/10/01 15:47:46 eaton Exp $  // $Id: votingapi.module,v 1.46.2.15 2008/10/09 21:12:35 eaton Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 423  function _votingapi_get_standard_results Line 423  function _votingapi_get_standard_results
423      }      }
424    }    }
425    
426    $sql  = "SELECT v.tag, v.value, COUNT(1) AS score ";    $sql  = "SELECT v.tag, v.value, v.value_type, COUNT(1) AS score ";
427    $sql .= "FROM {votingapi_vote} v ";    $sql .= "FROM {votingapi_vote} v ";
428    $sql .= "WHERE v.content_type = '%s' AND v.content_id = %d AND v.value_type = 'option' ";    $sql .= "WHERE v.content_type = '%s' AND v.content_id = %d AND v.value_type = 'option' ";
429    $sql .= "GROUP BY v.value, v.tag";    $sql .= "GROUP BY v.value, v.tag";

Legend:
Removed from v.1.46.2.15  
changed lines
  Added in v.1.46.2.16

  ViewVC Help
Powered by ViewVC 1.1.2