Changeset 5500 for trunk/include
- Timestamp:
- Mar 31, 2010, 4:34:21 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/picture_rate.inc.php
r5196 r5500 34 34 SELECT COUNT(rate) AS count 35 35 , ROUND(AVG(rate),2) AS average 36 , ROUND(STD(rate),2) AS std37 36 FROM '.RATE_TABLE.' 38 37 WHERE element_id = '.$picture['current']['id'].' … … 42 41 else 43 42 { // 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 ); 45 44 } 46 45 $template->assign('rate_summary', $row);
Note: See TracChangeset
for help on using the changeset viewer.