Changeset 5500 for trunk/include


Ignore:
Timestamp:
Mar 31, 2010, 4:34:21 PM (14 years ago)
Author:
plg
Message:

feature 1559: remove "standard deviation" in rating.

File:
1 edited

Legend:

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

    r5196 r5500  
    3434SELECT COUNT(rate) AS count
    3535     , ROUND(AVG(rate),2) AS average
    36      , ROUND(STD(rate),2) AS std
    3736  FROM '.RATE_TABLE.'
    3837  WHERE element_id = '.$picture['current']['id'].'
     
    4241  else
    4342  { // avg rate null -> no rate -> no need to query db
    44     $row = array( 'count'=>0, 'average'=>NULL, 'std'=>NULL );
     43    $row = array( 'count'=>0, 'average'=>NULL );
    4544  }
    4645  $template->assign('rate_summary', $row);
Note: See TracChangeset for help on using the changeset viewer.