# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: Joomla root # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. --- components/com_comprofiler/plugin/user/plug_cbprofilebook/cb.profilebook.php +++ components/com_comprofiler/plugin/user/plug_cbprofilebook/cb.profilebook.php @@ -40,7 +40,7 @@ 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();