Project

General

Profile

Bug #2492 ยป 2492.patch

krileon, 10 April 2012 16:55

View differences:

components/com_comprofiler/plugin/user/plug_cbprofilebook/cb.profilebook.php
pbcbRatings::_getLanguageFile();
$sql = 'SELECT AVG(postervote) FROM #__comprofiler_plug_profilebook WHERE userid = ' . (int) $user->id;
$sql = 'SELECT AVG(postervote) FROM #__comprofiler_plug_profilebook WHERE userid = ' . (int) $user->id . ' AND postervote > 0';
$_CB_database->setQuery( $sql );
$value = $_CB_database->loadResult();
    (1-1/1)